History, Aliases, and Shell Startup Files
Make a shell work for you and keep it that way: search and tune the command history, define an alias and a function in the file every shell reads, and change PATH for one user and for all users so that it survives a new login.
Skill labbeginner~30 minFree
What you'll do
- ✓Search the command history and control what it keeps
- ✓Define aliases and functions that every interactive shell has
- ✓Decide what belongs in ~/.bash_profile and what in ~/.bashrc
- ✓Extend PATH for one user and, through /etc/profile.d, for all users
Lab outline
- 01History
- 02Aliases and functions
- 03Startup files and PATH
Before you start
- Shell Environment and a Repeatable Inventory
- Become Another User with su and sudo
Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.