Section 6.15. Command-Line Options


[Page 242 (continued)]

6.15. Command-Line Options

Bash supports many command-line options. Some of the most useful are shown in Figure 6-51.

Figure 6-51. Some Bash command-line options.

-c string

Run string as a shell command.

-s

Read commands from standard input.

--login

Run Bash as a login shell. This is useful if you can't set Bash to be your login shell with chsh.

--noprofile

Ignore Bash profile files (systemwide and user versions).

--norc

Ignore Bash rc files (~/.bashrc).

--posix

Run in Posix mode (same as set o posix).

--verbose | -v

Print shell input lines as they are read (same as set o verbose).





Linux for Programmers and Users
Linux for Programmers and Users
ISBN: 0131857487
EAN: 2147483647
Year: 2007
Pages: 339

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net