cli

Ubuntu ssh Broken Pipe

After upgrading to 11.04 and doing a new install of 11.10 my ssh sessions keep timing out if left alone for too long.

The solution is to add

ServerAliveInterval 60

to /etc/ssh/ssh_config - or to ~/.ssh/config

Search for text, list files

I've found myself needing to sort through a large number of files for a particular phrase. Thanks to the Gnu/Linux command line, I'm able to list the filename for every file that this search phrase is found.

How, you might ask? It's easy. And here's how.