mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
20 lines
343 B
Markdown
20 lines
343 B
Markdown
![]() |
# set
|
||
|
|
||
|
> Display, set or unset values of shell attributes and positional parameters.
|
||
|
|
||
|
- Display the names and values of shell variables:
|
||
|
|
||
|
`set`
|
||
|
|
||
|
- Mark variables that are modified or created for export:
|
||
|
|
||
|
`set -a`
|
||
|
|
||
|
- Notify of job termination immediately:
|
||
|
|
||
|
`set -b`
|
||
|
|
||
|
- Set various options, e.g. enable `vi` style line editing:
|
||
|
|
||
|
`set -o {{vi}}`
|