CentOS: Bash Variables Cheat Sheet

envList current enviro­nment variables
echo $NAMEOutput value of $NAME variable
export NAME=­valueset $NAME to value in enviroment
setChange value of shell atrributes and positional parameters or display list of shell variables and functions
$PATHExectuable search path
$HOMEHome directory
$SHELLCurrent shell

Leave a Reply

Your email address will not be published. Required fields are marked *