Category: Command Line
Commit All Changes in Git
February 9, 2008
Telling Git when you’ve added, deleted and renamed files gets tedious. Use this command and Git will look at the…
Graphical representation of sub-directories
February 8, 2008
This command shows a graphical representation of the current sub-directories. ls -R | grep “:” | sed -e ‘s/://’ -e…
Remove Empty Lines
February 7, 2008
Remove empty lines from a file using sed sed ‘/^$/d’ file.txt Original Article
List all Installed RPMs by Size
February 5, 2008
Show space used by rpm packages installed sorted by size (fedora, redhat and like) rpm -q -a –qf “%10{SIZE}\t%{NAME}\n” |…
Reverse a File
February 5, 2008
This commands reverses a file in linux – the last line will be the first… tac file.txt tac = reverse…
Command to Sort Files by Size
February 1, 2008
Show size of the files and directories sorted by size du -sk * | sort -rn
Mount Windows Partion
January 28, 2008
Mount a Windows FAT partition. If it is an NTFS partion, use ‘ntfs’ instead of ‘fat’. Make sure that the…
Recent Comments