-
Book Overview & Buying
-
Table Of Contents
Linux Command Line and Shell Scripting Bible - Third Edition
By :
The shell program that the system starts depends on your user ID configuration. In the /etc/passwd file, the user ID has its default shell program listed in field #7 of its record. The default shell program is started whenever the user logs into a virtual console terminal or starts a terminal emulator in the GUI.
In the following example, user christine has the GNU bash shell as her default shell program:
$ cat /etc/passwd
[...]
Christine:x:501:501:Christine B:/home/Christine:/bin/bash
$
The bash shell program resides in the /bin directory. A long listing reveals /bin/bash (the bash shell) is an executable program:
$ ls -lF /bin/bash
-rwxr-xr-x. 1 root root 938832 Jul 18 2013 /bin/bash*
$
Several other shell programs are on this particular CentOS distribution. They include tcsh, which is based off the original C shell:
$ ls -lF /bin/tcsh
-rwxr-xr-x. 1 root root 387328 Feb 21 2013 /bin/tcsh*
$
Also, the Debian based version of the ash shell, dash, is included:
...
Change the font size
Change margin width
Change background colour