#!/bin/bash

# tidy swap display
cat /proc/swaps |	column -t | \
sed	's/ */ / ; s/	*/	/ ; s/ 	/	/ ; s/	 /	/ ; s/^ // ; s/^	//' > \
		/tmp/dfull.$$.txt
head -n  1	/tmp/dfull.$$.txt | sed 's/	/      /'
tail -n +2	/tmp/dfull.$$.txt | sed 's/partition	/partition      /'
rm		/tmp/dfull.$$.txt
 
# dfull shows how many backup rsnapshots we have
ls /.snapshots/

# dfull pretties the output of the df command
# dfull sorts partitions by their fullness
df -h -P | sed 's/Mounted on/Mounted_on/' |	column -t | head -n  1
df -h -P |					column -t | tail -n +2 | sort -rn -k4,4 | grep -v /boot | grep -v /dev/shm | grep -v /dev\$ | grep -v /lib/init/rw | grep -v /var/lock | grep -v /var/run | grep -v none | grep -v tmpfs


syntax highlighted by Code2HTML, v. 0.9.1