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
terry
command reads:
$ chsh terry /bin/ksh
$
DRAFT
2/5/97 11:31
displays the le name of the shell you entered
invoke (enter) that shell, and the
or
exit
4
login shell (the default shell you get when you log
ell) command:
sh
changes the default login shell to the Korn Shell, the
,
, or
sh
ksh
-
.
5
4
5
CTRL
D
Using the Command Line
4
).
keysh
chsh
4-5