- To check the default shell for the current user. Display the shell for the current user but not necessarily the shell that is running at the movement.
$ echo $SHELL
- To change the shell for bob from
Bash
toBourne Shell
$ chsh -s /bin/sh bob
- What is the value of the environment variable
TERM
echo $TERM
- Create a new environment variable called
PROJECT=MERCURY
and make it persistent by adding the variable to the~/.profile
file.echo export PROJECT=MERCURY >> ~/.profile
- Which of the following directories is not part of the PATH variable?
/opt/bob-code
- Set an alias called
up
for the commanduptime
and make it persistent by adding to~/.profile
file.echo alias up=uptime >> ~/.profile