Linux Snippets


Using alias extra command variables can be added to a standard command to save typing in the variable each time the command is used.

List current aliases

alias -p

Colourise the output of ls

alias ls='ls --color=auto'

Colourise the output of ls and append '/' to directories

alias ls='ls --color=auto --classify'


Free Memory (MB)

Linux tends to cache alot of things to free RAM. This results in memory monitoring programs showing the RAM as being 'full'. In reality its reporting cached data. To find the true amount of free memory use the following command.
free -m

Update Fedora Config Files (i.e. rpmnew/rpmsave)

rpmconf -a --frontend=meld