Archive for March, 2008

Show Hardware Info

Show hardware system components - (SMBIOS / DMI)


dmidecode -q

Creating a SVN Tag

Creating a tag in SVN means that you copy the entire trunk to another folder in the ‘tags’ folder…


svn copy trunk/ tags/TAG_NAME

Check for Badblocks on the HDD

Check bad blocks in disk hda1


badblocks  -v  /dev/hda1

Install CPAN in Fedora

If you are getting a ‘Can’t locate CPAN.pm in @INC’ error while opening cpan, you have not installed Bundle::Cpan. You can do that without Cpan - using yum


yum install perl-CPAN

yum localinstall

This will install an RPM, and try to resolve all the dependencies for you using your repositories.


yum localinstall package_name.rpm

Fix for Missing Fonts in Debian’s XMMS

If you have a debian system and the XMMS in that has a bug that hides the fonts in dailog, try this command…


dpgk-reconfigure locales

Unrar a RAR File in Linux

First install the ‘unrar’ package - then run this command…


unrar x file.rar

Uninstall Using Yum

Use this command to remove a rpm package.


yum remove package_name

Encrypt/Decrypt using GPG

Encrypt/Decrypt a file with GNU Privacy Guard - GPG.


#Encrypt
gpg -c file

#Decrypt
gpg file.gpg

Find number of lines in a file

Find the number of lines in a file using this command…


cat -n file
OR
wc -l file