Options
Common options
-
-cstr Read commands from string str.
-
-D Print all
$"..."strings in the program. Not ksh88.-
-i Create an interactive shell (prompt for input).
-
-p Start up as a privileged user. Bash: don’t read $ENV or $BASH_ENV, don’t import functions from the environment, and ignore the value of $SHELLOPTS. Korn shell: don’t process $HOME/.profile, read /etc/suid_profile instead of $ENV.
-
-r Create a restricted shell.
-
-s Read commands from standard input. Output from built-in commands goes to file descriptor 1; all other shell output goes to file descriptor 2.
-,--End option processing.
Bash options
-
-Ooption Enable shopt option option.
-
--debugger Read the debugging profile at start-up, turn on the
extdebugoption to shopt, and enable function tracing. For use by the Bash debugger.-
--dump-po-strings Same as
-D, but output in GNU gettext format.-
--dump-strings Same as
-D.-
--help Print a usage message and exit successfully.
--init-filefile,--rcfilefileUse file as the start-up file instead of ~/.bashrc for interactive shells.
-
--login Shell is a login shell.
-
--noediting Do not use the readline library for input, even in an interactive shell.
-
--noprofile Do not read /etc/profile or any of the personal start-up files.
-
--norc Do not read ~/.bashrc. Enabled automatically when invoked as sh.
-
--posix Turn on POSIX mode.
-
--restricted Same as
-r.-
--verbose Same as
set -v; the shell prints lines as it reads them.-
--version Print a version message and exit.
The remaining options to Bash ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access