Category: Command Line

Install and Configure Docker

Install Docker on Ubuntu and Configure it to use a non-default directory.

Remote Port Forwarding using SSH Tunnel

If you want someone on the internet to access a service/port on your local system(and you have access to a remote server), you can use SSH Tunnel to do this.

Rename Images Based on Exif Date

Renames all the files in the current folder based on the Exif date of that image. You’ll need the ‘jhead’ command tool – use apt-get to install it.

Database Data to Download Variables

Gets data from a MySql database, splits the data into separate columns, then uses one column in a URL to download something – and uses other column to name the file thats downloaded

Search Wikipedia from Command Line

Get the intro paragraph of any wikipedia article using this trick… dig +short txt “<keyword>”.wp.dg.cx

Encrypt/Decrypt files using GPG

Encrypt/Decript files in linux #Encypt… gpg -c <Source File> #Decrypt… gpg <Encrypted File>

Compress the Big Files

Compress the big image files

Iterate a Text File in Bash

This is how you iterate thru a text file outputting a line at a time in Bash shell scripting.

Convert RAW files to JPEG

Convert RAW files to JPEG in batch. Convert all files in a folder using a command. For this to work, first you must have ‘ufraw’ package installed. sudo apt-get install ufraw or sudo yum install ufraw depending on your OS

Send One Line From a Text File as as SMS Every 10 Mins

This command will send a line from a given text file one every 10 mins as an SMS to a given number.