Basic CommandsLesson 16Free preview
Bash Alias
This lesson is part of Bash · All levels
Summary
Alias is a short name that replaces long or frequently used commands. The alias definition is written with the = without space and is usually stored in ~/.bashrc to keep it available each session. Use the unalias to delete the alias already created.
Key points
- Alias name='command' makes short version commands
- There should be no space around the sign.
- The alias only applies during the shell session running
- Save the alias to automatically load (.bashrc)
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.