July 2018
Beginner
264 pages
8h 9m
English
Wait—there are hidden variables and reserved words? Yes! There are words you can't use in your script unless properly contained in a construct such as a string. Global variables are available in a global context, which means that they are visible to all scripts in the current shell or open shell consoles. In a later chapter, we will explore global shell variables more, but just so you're aware, know that there are useful variables available for you to reuse, such as $USER, $PWD, $OLDPWD, and $PATH.
To see a list of all shell environment variables, you can use the env command (the output has been cut short):
$ envXDG_VTNR=7XDG_SESSION_ID=c2CLUTTER_IM_MODULE=ximXDG_GREETER_DATA_DIR=/var/lib/lightdm-data/rbrash ...
Read now
Unlock full access