Geek Learnings of Unix for make benefit glorious head of kunal
Posted by Kunal on April 11, 2008
One of the best things about being a grad student is the fact that currently I have 3 machines at my disposal. Three linux machines have really brought out the Unix geek in me. I will try to document some cool tips that I have grokked from the interwebs. Without much ado, here are some learnings –
1. Coloured grep
Why didn’t anyone tell me about this before? This should be a standard IMHO. Just invoke grep with the option –color=tty for a coloured output. I have created an alias for this and put it in my .bashrc.
alias grep='grep --color=tty'
With multiple computers at your disposal, SSH is a necessity. One great feature of SSH is the ability to authenticate using public key. Not only is this method more secure than passwords, but it is also painless.
This page on Debian administration explains how easy it is to set up public key authentication.
I am a complete newbie to screen but it seems like an awesome tool. Screen is a great way to have persistent command line sessions. If you want to reconnect to your work terminal from your laptop or another machine, screen is just the solution.
screen -dr is a real savior.