Shell

alias

Create shorthand names for commands or command sequences.

Synopsis

syntax
alias [NAME[=VALUE]]...

Examples

Create ll shortcut for detailed listing
alias ll='ls -alF'
Shortcut for git status
alias gs='git status'
List all defined aliases
alias
Make rm always ask for confirmation
alias rm='rm -i'

About alias

The `alias` command create shorthand names for commands or command sequences. Shell commands configure your interactive environment — variables, aliases, history, and shell options.

The shell is your primary interface with Linux, and customizing it improves productivity. These commands work across bash, zsh, and other POSIX-compatible shells with minor differences.

The command accepts 0 commonly used flags shown above, though the full set of options is available in the man page (`man alias`). The 4 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.

Related commands

More Shell Commands

Other commands in the Shell category

Related tools