[clug] Variables

Bryan Kilgallin (iiNet) kilgallin at iinet.net.au
Sun Sep 10 15:14:23 UTC 2017

My shell's tutorial mentions two of these: HOME and PWD. How might I 
list all such?

 > echo My home directory is $HOME
My home directory is /home/tutorial

Variable substitution also occurs in double quotes, but not single quotes:

 > echo "My current directory is $PWD"


More information about the linux mailing list