Suggested day 1620–30 minutesSafe in practice folder

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.

Outcome: You can customize your session without permanently changing your shell.

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

1

Create and inspect aliases

Safe

Creates a friendly listing shortcut.

Terminal
alias ll='ls -la'
ll
alias ll
2

Remove aliases

Safe

Removes the temporary shortcut.

Terminal
unalias ll
alias
3

Bypass an alias

Safe

Runs the original command even if an alias exists.

Terminal
alias ls='ls --color=auto'
command ls
\ls

Checkpoint

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?

Shortcuts:Alt + ← previous lessonAlt + → next lessonAlt + H home? focus search