Linux Command Line · 14-day planAll days
Day 10 of 14 30 minVariablesPATHAliases
Make the shell your own. Learn shell variables and environment variables, how export passes settings to programs, how PATH decides which program runs, how to add your own commands, create aliases, and keep it all in ~/.bashrc.
By the end of today you can
- Create, use and remove shell variables
- Explain the difference between a shell variable and an exported environment variable
- Understand PATH and add your own folder of commands to it
- Create aliases for commands you type often
- Save your settings in ~/.bashrc and reload it with source
What's inside
- 5 sections
- 2 diagrams and mind maps
- 8 code examples you can run
- 5-question quiz
- 1Shell variables
- 2Environment variables
- 3PATH: where commands come from
- 4Aliases
- 5Making it permanent: ~/.bashrc
Sign in free to read this lesson
Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.
Sign in free