There are several environment variables in bash shell among them few are listed below
echo $PWD ———This will print the current directory
echo $SHELL ——-This will print the shell details
echo $PS1 —-Print the Prompt
echo $PATH —This will print the search path
We can set these environmental variable in the shell using below commands.
export PS1=’lab01> ‘ –This will set the prompt as lab01>
Leave a Reply