- Access Hands-On Labs here Hands-On Labs
- 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
BashtoBourne Shell$ chsh -s /bin/sh bob - What is the value of the environment variable
TERMecho $TERM - Create a new environment variable called
PROJECT=MERCURYand make it persistent by adding the variable to the~/.profilefile.echo export PROJECT=MERCURY >> ~/.profile - Which of the following directories is not part of the PATH variable?
/opt/caleston-code - Set an alias called
upfor the commanduptimeand make it persistent by adding to~/.profilefile.echo alias up=uptime >> ~/.profile - Update Bob's prompt so that it displays the date as per the format below:
Example:
[Wed Apr 22]bob@caleston-lp10:~$Make sure the change is made persistent.PS1='[\d]\u@\h:\w\$' or echo 'PS1=[\d]\u@\h:\w$' >> ~/.profile