Category: Command Line

Rip Audio CD to Wav

Rip audio tracks from a CD to wav files cd-paranoia -B

Burn Compressed ISO Image

Burn a compressed ISO image gzip -dc cd_iso.gz | cdrecord dev=/dev/cdrom

Search Debian Package

Show all deb packages with the name “httpd” dpkg -l | grep httpd

Shows all Partitions

Shows all partitions on the HDD fdisk -l

Update an Installed RPM Package

Upgrade a rpm package only if it is already installed rpm -F package.rpm

Batch Resize Image

Resize all JPG Files to 800×600 convert -sample 800×600 *.jpg output_file_name

All RPM Packages

Show all rpm packages installed on the system rpm -qa

Import RPM Key

Import public-key digital signature rpm –import /media/cdrom/RPM-GPG-KEY

Optimized Grep Searching

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

Linux command to create a random password head -n1 /dev/urandom|md5sum -b|head -c 5