Month: September 2008

Decompress Bzip2 File

Decompress a compressed tar archive in bzip2 tar -xvfj archive.tar.bz2tar -xvfj archive.tar.bz2

Create a Bzip2 File

create a tarball compressed into bzip2 tar -cvfj archive.tar.bz2 dir

Encrypt/Decrypt using PGP

Usie this command to encrypt and decrypt a file using PGP in linux. gpg -c file gpg -o file -d…

Remove www From URL using .htaccess in Apache

This htaccess code will remove the ‘www’ part from the url. It uses the mod_rewrite module of apache to re-write…

Encrypt/Decrypt File using OpenSSL in Linux

Works on OS X, Linux, anywhere with OpenSSL installed: To encrypt a file: openssl des3 -salt -in infile.txt -out encryptedfile.txt…

Delete all \n chars in a file…

Delete all \n chars in a file… tr -d “\n”