Archive for February 5th, 2008

List all Installed RPMs by Size

Show space used by rpm packages installed sorted by size (fedora, redhat and like)


rpm -q -a --qf "%10{SIZE}\t%{NAME}\n" | sort -k1,1n

Reverse a File

This commands reverses a file in linux - the last line will be the first…


tac file.txt

tac = reverse of cat