Monthly Archives: May 2015

Quick tricks on shell

I was working on a project that involves moving data from one point to other, it involves a verity of commands. I am listing some useful tricks. 1. This script is a tiny script to compress, generate md5 and transfer any directory. tar cvJf $1.tar.xz $2; md5sum $1.tar.xz > $1.md5sum scp -i<private key> -P<port> $1.md5sum <user>@<hostname>:<path>… Read More »