Category: Command Line
Burn Compressed ISO Image
November 11, 2008
Burn a compressed ISO image gzip -dc cd_iso.gz | cdrecord dev=/dev/cdrom
Search Debian Package
November 10, 2008
Show all deb packages with the name “httpd” dpkg -l | grep httpd
Update an Installed RPM Package
November 4, 2008
Upgrade a rpm package only if it is already installed rpm -F package.rpm
Batch Resize Image
October 31, 2008
Resize all JPG Files to 800×600 convert -sample 800×600 *.jpg output_file_name
Import RPM Key
October 26, 2008
Import public-key digital signature rpm –import /media/cdrom/RPM-GPG-KEY
Optimized Grep Searching
October 23, 2008
Grep that searches recursively, ignores binary files, and doesn’t look inside Subversion hidden folders. grep -Ir –exclude=”*\.svn*” “pattern” *
Linux Command to Generate a Password
October 22, 2008
Linux command to create a random password head -n1 /dev/urandom|md5sum -b|head -c 5
Recent Comments