mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
526 B
Plaintext
30 lines
526 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# swipl
|
|
|
|
> SWI-Prolog - A comprehensive free Prolog environment.
|
|
> More information: <https://www.swi-prolog.org/pldoc/man?section=cmdline>.
|
|
|
|
- Start an interactive session:
|
|
|
|
`swipl`
|
|
|
|
- Execute a command without showing any output:
|
|
|
|
`swipl --quiet -t "{{command}}"`
|
|
|
|
- Execute a script:
|
|
|
|
`swipl {{path/to/file.pl}}`
|
|
|
|
- Print all shell configuration variables:
|
|
|
|
`swipl --dump-runtime-variables`
|
|
|
|
- Display version:
|
|
|
|
`swipl --version`
|