I am Hack Sparrow
Captain of the Internets.

RSYNC Tutorial with Examples

Need a fast and efficient way to synchronize files on two systems? Looking for an alternative to FTP / SCP / RCP? RSYNC is the right tool for it! RSYNC's syncing capability makes it an excellent alternative to FTP and other file transfer tools like SCP and RCP. Why would one want to use RSYNC for file transfer? It is efficient (does not transfer files which are already in sync), safe (uses ...

Kill a suspended process on Linux Terminal

A process stops responding normally. When you try to exit it using Ctrl C, it prints ^C instead. Whatever you type just prints on the screen, the process seems to be stuck, and you hate restarting a new instance of the terminal. Try Ctrl \ If that doesn't help, send the process of the background using Ctrl ...

The Vim Survival Kit

Has Vim's vast options intimidated you to the point of not even daring to learn the basics? Fear not, for the Captain is here with you. In this post I will show you the most basic and useful commands that every Vim user should know. First off, there is a difference between Vi and Vim. Vim is like the improved version of the Vi editor (Vim == proved). If you are on Ubuntu, you need to install Vim first. The default Vi edi ...

Linux – Find out which OS distro

So how do you get the distro name of the Linux you are using? The uname command doesn't really help a lot of time. [code] $ uname -a Linux hackbox 2.6.32-131.17.1.el6.x86_64 #1 SMP Thu Oct 6 19:24:09 BST 2011 x86_64 x86_64 x86_64 GNU/Linux [/code] Try looking for the details in /proc/version. [code] $ cat /proc/version Linux version 2.6.32-5-xen-amd64 (Debian 2.6.32-31) (captain@hacksparrow.com) (gcc versi ...

Linux scp command – Common use cases

scp is a very useful Linux tool which lets you copy files from one system to another via SSH in a secured manner. I will assume that, since you want to use the scp command, you have access to a Linux or related system. You can find out details about the scp command by doing man scp at the terminal. But that's not the point of it. I want to show you some common uses cases of scp and how t ...