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

Sync Two Folders

Sync two folders using rsync command rsync -rogpav –delete /home/me /backup/folder

Convert all Ico files to Gif

I had a collection of ico files with the ext gif – these are the commands I used to fix…

Install RPM Package

Install a rpm package rpm -ivh package.rpm

5 Column Output

Divide terminal into 5 columns ls /tmp | pr -T5 -W$COLUMNS

Copying a directory

Copying a directory cp -a dir1 dir2

‘date’ and ‘cal’ Commands

Some date finding commands.. date Mon Mar 10 23:52:08 IST 2008 cal March 2008 Su Mo Tu We Th Fr…

Create a Boot Floppy

Create a boot floppy – if you still have a floppy drive? mkbootdisk –device /dev/fd0 `uname -r`

Delete Multiple Folders

Remove two directories and their contents recursively rm -rf dir1 dir2