Month: February 2008

Batch Resize Images with ImageMagick

Batch resize files in the current directory and send them to a thumbnails directory (requires convert from Imagemagick) find ….

Cpuinfo

Linux command to show information about the CPU cat /proc/cpuinfo # Result (example) processor : 0 vendor_id : AuthenticAMD cpu…

tree Command

Show files and directories in a tree tree

Seach for a String in a Folder using grep

Search string “test_text” at directory ‘/var/log’ and below grep test_text -R /var/log/*

Remove Empty Lines and Comments

Remove comments and blank lines from example.pl sed ‘/ *#/d; /^$/d’ example.pl

See Mounted File Systems

Shows all mounted file systems in Linux cat /proc/mounts

Commit All Changes in Git

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

This command shows a graphical representation of the current sub-directories. ls -R | grep “:” | sed -e ‘s/://’ -e…

Remove Empty Lines

Remove empty lines from a file using sed sed ‘/^$/d’ file.txt Original Article

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” |…