Custom Shell Shortcuts (alias)
Concept & Overview
Typing long commands with multiple flags can get exhausting. In Linux, we can create custom shortcuts called aliases. For example, you can map ll to run ls -la automatically.
- To create a temporary alias, run alias name='command' (e.g. alias ll='ls -la').
- Running alias without arguments lists all active aliases in the current session.
- To make aliases permanent across reboots, they are typically written to .bashrc or .bash_profile configuration files.
la that runs ls -a by running alias la='ls -a'. Test it by running la in your terminal.Command Syntax Reference
| Command / Syntax | Description |
|---|---|
alias la='ls -a' | Alias la to run ls -a |
alias | List active aliases |
Verification Objectives
These conditions will be automatically verified when you run commands inside the interactive terminal simulator:
- ○Create alias la for ls -a
- ○Execute the newly created alias la
Ready to complete Quest 118?
Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.