Set a variable children will inherit
Cheat sheet · 11 commands
Shell & environment
Your shell has its own state: variables, aliases, a search path and a history of everything you typed. Knowing how to inspect and change that state is what makes a terminal feel like yours.
The 3 you will use every day
Create a shortcut (put it in ~/.bashrc)
Search your past commands
The full sheet
- Where the shell looks for commandsguide ›
- Set a variable children will inheritguide ›
- Set it for one command onlyguide ›
- Reload your config in this shellguide ›
- Create a shortcut (put it in ~/.bashrc)guide ›
- Is it an alias, function, builtin or file?guide ›
- Which file would actually runguide ›
- Portable existence check for scriptsguide ›
- Search your past commandsguide ›
- Repeat the last command with sudoguide ›
- The last argument of the previous commandguide ›
Practise these for real in the interactive course,
or keep every sheet, chapter and fix in one book: The Linux Command Line Handbook.