Changing your shell temporarily

You can change your shell temporarily by creating a sub-shell and using that instead of the original shell. You can create a sub-shell using any shell available on your UNIX system. This means that you can look in the /etc/shells file and use a shell listed there, or you can use a shell installed elsewhere on the system (Code Listing 3.6).

To find out which temporary shells you can use:

1.
cat /etc/shells
At the shell prompt, type cat /etc/shells to find out which shells are listed in the shells file. If you don't find a shell you want to use in the shells file, look for other shells installed elsewhere on the system.
2.
ls /usr/local/bin *sh
At the shell prompt, type ls /usr/local/bin *sh to find additional ...

Get Unix: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.