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 emulationSYNOPSIS
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 {} \;