Bash Aliases
Created Saturday 27 March 2010

Add these to the end of your ~/.bashrc

# how I like ls to work: coloured, grouping directories first, and appending '/' to them so they are clear i.e. "home/"
alias ls='ls --color=auto --group-directories-first -p'
# a common alias: ll for human readable list form
alias ll='ls -hl'
# little simplification for getting the size of a directory
alias dirsize='du -sh'
# disk space (i have added a grep to customise the output, which is specific to my partition setup)
alias diskspace='df -h | grep /dev/sda'
# alias grep for highlighted search terms and case insensitivity
alias grep='grep -i --color=auto'

See also: Shell Scripting

June 7th
REQUIEM.
Name
Email (Required, not published)
Website