Cheat Sheets are in BETA. Give us your feedback.


The shell command alias is used to assign commonly used commands to shortcuts (or aliases). The assigned commonly used command should be wrapped in double quotes.

# The following command creates an alias `pd` for the command `pwd` alias pd="pwd"

Export command

The export command makes a given variable available to all child sessions initiated from the current session.

# This command will make the environment variable USER available # to all child sessions with the value "Jane Doe". export USER="Jane Doe"

HOME Environment Variable in Unix Systems

HOME is an environment variable present in command line environments. It is used to get the path to the current user’s home directory. This makes it easy for programs to access the home directory when needed.

# To show the path of the home directory use the following command: echo $HOME