Contents
1. Invocation Modes
Mode |
Bash |
POSIX Shell |
-bash [options] |
-sh |
|
sh -l |
||
sh --login |
||
bash -c 'command' [options] |
sh [options] -c 'command' |
|
Interactive Shell |
bash -i |
sh -i |
Shell Script |
#!/bin/bash [option] |
#!/bin/sh [option] |
Command File |
bash [options] file [args] |
sh [options] file [args] |
Command Stream |
bash [options] -s [SHELL [ARGS]] |
sh [options] -s [SHELL [ARGS]] |
GNU bash may be started in any combination of various invocation modes. These modes control:
- The source from which to interpenetrate commands:
- user's terminal
- shell script
- command string
- file contents
- standard input
- POSIX compatibality
- Login shell mode
- Security settings
- Restricted Shell access
1.1. Interactive Shell
1.2. Login Shell
- Login Shell
1.3. POSIX Mode
1.4. Command String
1.5. Interactive Shell
1.5.1. Command Line
1.5.2. Prompting
1.5.3. Completion
1.5.4. History
1.5.5. Job Control
1.6. Shell Script
1.7. Command File
1.8. Command Stream
1.9. Restricted Shell
- Bash invocation modes.