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..." |
(No difference)
|
Revision as of 17:05, 14 February 2018
Bourne Shell (sh)
Initialisation
- System file: /etc/profile
- User: ~/.profile (environment and terminal settings)
Variables
- HOME - home directory
- IFS - internal field separator
- LOGNAME
- PATH - search path
- PS1 - primary prompt
- PS2 - secondary prompt
- PWD - present working directory
- SHELL
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