Monthly Archives: October 2007

Reference script for CLI color codes

I have been experimenting with adding more color to my bash prompts of late. I find it easier to read when the fields are in distinct colors. The problem I always have is remembering what those wonderfully obscure ANSI escape … Continue reading

Posted in CLI | Tagged , , | 1 Comment

View compressed log files easily

Any linux distribution around these days will have compression and rotation in place for files in 1/var/log (or wherever else they happen to go). So if you look in there, you will see one or two log files (current and … Continue reading

Posted in CLI | Tagged , , , | 2 Comments

Loops in the CLI: Warm and Fuzzy

It seems nearly every week, I find something amazingly handy in bash that I had not used before. This time: Loops. I would bet nearly everyone who has written more than a handful of shell scripts over a few lines … Continue reading

Posted in Programming | Tagged , | Leave a comment

Handy Command: Fuser

Fuser is a very handy command when you are trying to investigate what is listening on a box. Consider the following case. You, being a diligent systems administrator, have been performing regular nmap scans against your boxes from remote hosts. … Continue reading

Posted in CLI | Tagged , , | Leave a comment

Easier Sharing: SSHFS

My last post was on how I used Samba to share files from my central media server to other machines on my local network. Seemed great at first, but having used it for a little while, I was rather disappointed. … Continue reading

Posted in CLI | Tagged , , | 1 Comment