System | Variable Meaning |
BASH | Our shell name |
BASH_VERSION | Our shell version name |
COLUMNS | No. of columns for our screen |
LINES | No. of columns for our screen |
PS1 | Our prompt settings |
HOME | Our home directory |
OSTYPE | Our Os type |
PATH | Our path settings |
PWD | Our current working directory |
SHELL | Our shell name |
LOGNAME | Our logging name |
USERNAME | User name who is currently login to this PC |
# # Script to test MY knowledge about variables! # myname=Vivek myos = TroubleOS myno=5 echo "My name is $myname" echo "My os is $myos" echo "My number is myno, can you see this number ?"