O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Entering and Leaving the TC Shell

You can execute tcsh by giving the command tcsh. If you are not sure which shell you are using, use the ps utility to find out. It shows whether you are running tcsh, zsh, bash, sh (linked to bash), or possibly another shell. The finger command followed by your login name also displays the name of your login shell, which is stored in the /etc/passwd file. If you want to use tcsh as a matter of course, you can use the chsh (change shell) utility to change your login shell:

bash$ chsh 
Changing shell for sam.
Password:
New shell [/bin/bash]: /bin/tcsh
Shell changed.
bash$

The shell you specify is in effect for your next login and all subsequent logins until you specify a different login shell. The name of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required