Mission 1 of 5
Aliases and Command Shortcuts
Create shortcuts that improve a session without hiding dangerous behavior.
Create temporary shortcuts that make the terminal friendlier without editing startup files yet.
Mental model
Understand what is happening
Aliases are shell shortcuts.
Temporary aliases disappear when the terminal closes.
command and backslash bypass aliases.
Guided lab
Work through the mission
Create and inspect aliases
Creates a friendly listing shortcut.
alias ll='ls -la'
ll
alias llRemove aliases
Removes the temporary shortcut.
unalias ll
aliasBypass an alias
Runs the original command even if an alias exists.
alias ls='ls --color=auto'
command ls
\lsCheckpoint
Verify the mission
The alias expands correctly and can be bypassed or removed.
Try it yourself
One step without a recipe
Create alias today='date +%Y-%m-%d', run it, then unalias it.
Need a hint?
Create your alias in the current session first. Live with it for an hour. If you reach for it constantly, it deserves a permanent spot in your config. If you forget it exists, move on.
Explain it back
Before you move on
- How do you remove an alias?
- Why are temporary aliases safe for beginners?