Interview Questions

What can you type at a command line to determine which shell you are using?

Operating System Interview Questions and Answers


(Continued from previous question...)

What can you type at a command line to determine which shell you are using?

echo $SHELL

The name and path to the shell you are using is saved to the SHELL environment variable. You can then use the echo command to print out the value of any variable by preceding the variable's name with $. Therefore, typing echo $SHELL will display the name of your shell.

(Continued on next question...)

Other Interview Questions