Tag: Linux

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

DHCP Mode Activation

active interface ‘eth0’ in dhcp mode dhclient eth0

Do Md5 check on CD/DVD/HDD

Perform an md5sum on a device, like a CD dd if=/dev/hdc | md5sum

Convert Bin/Cue Images to ISO Image using Linux Command

You can use this command to convert a Bin/Cue image to an ISO image in a linux system. You may…

Remove Deb Package

Remove a deb package from the system dpkg -r package_name