alias

Creates aliases -- words that are replaced by a command string. Aliases expire with the current shell session unless defined in the shell's configuration file, e.g. ~/.bashrc. More information: <https://tldp.org/LDP/abs/html/aliases.html>.

Install

All systems
curl cmd.cat/alias.sh
Debian Debian
apt-get install bash
Ubuntu
apt-get install bash
Alpine
apk add bash
Arch Arch Linux
pacman -S bash
image/svg+xml Kali Linux
apt-get install bash
CentOS
yum install bash
Fedora
dnf install bash
Windows (WSL2)
sudo apt-get update sudo apt-get install bash
OS X
brew install bash
Raspbian
apt-get install bash
Docker
docker run cmd.cat/alias alias powered by Commando

Creates aliases -- words that are replaced by a command string. Aliases expire with the current shell session unless defined in the shell's configuration file, e.g. ~/.bashrc. More information: <https://tldp.org/LDP/abs/html/aliases.html>.

  • List all aliases:
    alias
  • Create a generic alias:
    alias word="command"
  • View the command associated to a given alias:
    alias word
  • Remove an aliased command:
    unalias word
  • Turn `rm` into an interactive command:
    alias rm="rm --interactive"
  • Create `la` as a shortcut for `ls --all`:
    alias la="ls --all"

© tl;dr; authors and contributors