Category: Linux

Download Multiple URLs

Command to download a series of urls with zero padding files… for ((i=1;i

PS Command Forest Mode

Displays linux tasks in a hierarchical mode ps -e -o pid,args –forest

Archive all files with a given extension

Find all files with ‘.log’ extention and make an bzip archive find /var/log -name ‘*.log’ | tar cv –files-from=- |…

Configure IP Address

Configure IP Address using the ifconfig command ifconfig eth0 192.168.1.1 netmask 255.255.255.0

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…

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”

Extract to Given Folder

extract a tarball into / tmp tar -xvf archive.tar -C /tmp