Dumb *nix tricks

Here are some interesting tools that you can’t live without!

screen - too useful, run apps in a virtual console which you can attach, deattach and share

NAME
screen - screen manager with VT100/ANSI terminal emulation

SYNOPSIS
screen [ -options ] [ cmd [ args ] ]
screen -r [[pid.]tty[.host]]
screen -r sessionowner/[[pid.]tty[.host]]

cd `pwd -P` - Jump into the real directory (from a linked directory).

history - use it with grep if you forgot what you did

strings - just show the printable strings from a file

tail and head - tail -f is a lifesaver

sftp - i really shouldn’t need to explain this.

file - do magic stuff

This shows all attached block devices (it also errors like crazy, hence the | more)
blockdev –report /dev/* | more

Make random noise:
cat /dev/urandom > /dev/dsp

Find a file containing “keyword”
find . -exec grep -l keyword {} \;

Posted on: Wednesday, November 5th, 2008 at 6:32 pm | Category: Technology.
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply