$
Learn Linux handbook
en
XP:0
Quest 118Shortcutter
+180 XP

Custom Shell Shortcuts (alias)

Launch Interactive Terminal for This Quest→No installation required • Runs fully in browser

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.

Let's set up some shortcuts. Create a temporary alias named la that runs ls -a by running alias la='ls -a'. Test it by running la in your terminal.

Command Syntax Reference

Command / SyntaxDescription
alias la='ls -a'Alias la to run ls -a
aliasList 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.