Learn The Command Line - Configuring The Environment - Configuring The Environment Cheatsheet - Codecademy
Learn The Command Line - Configuring The Environment - Configuring The Environment Cheatsheet - Codecademy
Alias
The shell command alias is used to assign commonly # The following command creates an alias
used commands to shortcuts (or aliases). The assigned
`pd` for the command `pwd`
commonly used command should be wrapped in double
quotes.
alias pd="pwd"
Environment Variables
Variables that can be used across terminal commands are
called environment variables. They also hold information
about the shell’s environment.
Export command
The export command makes a given variable available to # This command will make the environment
all child sessions initiated from the current session.
variable USER available
# to all child sessions with the value
"Jane Doe".
export USER="Jane Doe"
Print Share