May 30, 2016

Unix - Aliases


You can use aliases to decrease the amount of typing you need to do to get
commands you commonly use. Examples of fairly popular aliases include (in
Bourne shell style, as in /bin/sh, bash, ksh, and zsh):

alias lf="ls -FA"
alias ll="ls -lA"
alias su="su -m"

In csh or tcsh, these would be

alias lf ls -FA
alias ll ls -lA
alias su su -m

To remove an alias, you can usually use unalias aliasname. To list all aliases, you can usually type just alias.

© Arnold Greyling 2020

Powered by Hugo & Kiss.