

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 7
click for more info
Not enough gems
Cost: 6 gems
1: Open a Terminal
incomplete
2: Installing Windows Subsystem for Linux
incomplete
3: Terminal Alternatives
incomplete
4: Download Worldbanc
incomplete
5: Shell Configuration
incomplete
6: PATH Config
incomplete
7: Shell Aliases
incomplete
8: Man
incomplete
9: Symbolic Links
incomplete
10: Top
incomplete
11: Interrupt
incomplete
12: Kill
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
A shell alias is a command shortcut. They're useful for shortening commands you run all the time.
Maybe you always run ls with the same flags. You can make a shortcut for them:
alias ll="ls -la"
This creates a temporary alias for the current shell session. Until you close the shell, ll will run ls -la.
Running alias without any arguments lists all the active aliases in your current session.
You can remove an alias with unalias:
unalias ll
That removes ll from the current session.
If you want your alias to still work the next time you open your shell, you can add it to your shell configuration file.
Add an alias to your config file.
nano ~/.bashrc
# or, if you're using zsh:
nano ~/.zshrc
alias reload='source ~/.bashrc'
# or:
alias reload='source ~/.zshrc'
. ~/.bashrc
# or:
. ~/.zshrc
alias
Paste the line that shows the reload alias and submit it.
You can remove reload from your config file after passing this lesson.