Get user manuals:
See SafeManuals.com
Determining Your Login Shell
The command
echo $SHELL
when you logged in.
$ echo $SHELL
/bin/sh
$
Temporarily Changing Your Shell
Unless you are in a restricted shell, you can temporarily change your shell by
using this command:
shell name
shell name is the name of the shell (for example,
where
Temporarily changing your shell lets you experiment in other shells. By typing
the name of the shell you want to run, you
correct prompt is displayed. After experimenting in the new shell, return to
your original shell by typing either
Permanently Changing Your Shell
To permanently change your
in), use the
ange
chsh ch
username shell path name
chsh
username is your user name and shell path name is the full path name
where
(e.g.,
) of the shell you want as your default. After you use the
/bin/ksh
command, you must log out and log in again for the change to take eect.
For example, if
changes the default login shell to the Korn Shell, the
terry
command reads:
$ chsh terry /bin/ksh
$
displays the le name of the shell you entered
invoke (enter) that shell, and the
or
exit
4 CTRL 5
login shell (the default shell you get when you log
ell) command:
sh
,
, or
sh
ksh
keysh
-
.
4 D 5
chsh
Using the Command Line 4-5
4
).