5.2. Selecting a ShellWhen you first get an account on a Linux machine, the account will use Bourne Again Shell (/bin/bash) as its login shell. But using bash is not a requirement, you can choose any shell to be your login shell. To change your default login shell, use the chsh utility (Figure 5-2).
In order to use chsh, you must know the full pathnames of the shells (Figure 5-3).
In the following example, I changed my default login shell from Bash to a C shell: $ chsh ...change the login shell. Changing shell for glass Password: ...must verify you are who you say. New shell [/bin/bash]: /bin/tcsh ...enter full pathname. $ ^D ...terminate login shell. login: glass ...log back in again. Password: ...secret. % _ ...this time I'm in a C shell. Another way to find out the full pathname of your login shell is to type the following: $ echo $SHELL ...display the name of my login shell. /bin/tcsh ...full pathname of the C shell. $ _ This example illustrated the echo shell command and a shell variable called SHELL. Both of these new facilitiesechoing and variablesare discussed later in this chapter. |