Bourne Shell: Difference between revisions
Appearance
Created page with "Bourne Shell (sh) ==Initialisation== # System file: <tt>/etc/profile</tt> # User: <tt>~/.profile</tt> (environment and terminal settings) ==Variables== *HOME - home director..." |
m →Links |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
==Variables== | ==Variables== | ||
*CDPATH - cd search path | |||
*HOME - home directory | *HOME - home directory | ||
*IFS - internal field separator | *IFS - internal field separator | ||
*LOGNAME | *LOGNAME | ||
*MAIL - mailbox location | |||
*MAILCHECK - check time interval | |||
*PATH - search path | *PATH - search path | ||
*PS1 - primary prompt | *PS1 - primary prompt | ||
Line 14: | Line 17: | ||
*PWD - present working directory | *PWD - present working directory | ||
*SHELL | *SHELL | ||
*TERM - terminal type | |||
==Built-in Commands== | ==Built-in Commands== | ||
Line 33: | Line 37: | ||
*Single quotes | *Single quotes | ||
*Double quotes | *Double quotes | ||
==Publications== | |||
*Anatole Olczak: ''The Bourne Shell Quick Reference Guide'' - ASP 1991, ISBN 0-935739-22-X | |||
==Links== | ==Links== |
Latest revision as of 22:10, 3 July 2022
Bourne Shell (sh)
Initialisation
- System file: /etc/profile
- User: ~/.profile (environment and terminal settings)
Variables
- CDPATH - cd search path
- HOME - home directory
- IFS - internal field separator
- LOGNAME
- MAIL - mailbox location
- MAILCHECK - check time interval
- PATH - search path
- PS1 - primary prompt
- PS2 - secondary prompt
- PWD - present working directory
- SHELL
- TERM - terminal type
Built-in Commands
- . (dot)
Special Metacharacters
; command separator & background process () command group in subshell {} command group without subshell | pipe < redirected input > redirected output newl command termination space word delimiter $ variable substitution *[]? filename expansion
- Backslash (\) used for quoting a single character.
- Single quotes
- Double quotes
Publications
- Anatole Olczak: The Bourne Shell Quick Reference Guide - ASP 1991, ISBN 0-935739-22-X