Essential UNIX Tricks and Tools?
Chris Lesner asks: "What handy UNIX tricks/tools do you use everyday? I'm asking for stuff that amazes your friends and makes you wonder how they use UNIX w/o them.
Some simple examples include: job control (with fg, bg/&, jobs, Ctrl-Z); moving login sessions between machines with Screen for vt100 and VNC for X11 and using screen and VNC to share login session b/w users for demos etc.; using find, xargs -i and
echo to build command strings which after
inspection can be piped back though bash e.g.
`find . -type f | xargs -i{} echo "cp {} {}.bak" | bash` I'm asking b/c my source for this kind of information has dried up as my UNIX skills have matured. I'm guessing other Slashdot readers have the same problem. By the way, if you think the examples I give are lame I challenge you to better them!"
Well, seeing that my friends don't know much about UNIX, the following usually impresses them:
//empire/files -U jesus) /tmp
1. Connect to home router (FreeBSD) w/ PuTTy SSH client
2. smbclient to windows share (i.e. smbclient
3. mget files to
4. run command shell on client box
5. pscp files from router
6. in the meantime, as a finishing touch, perl -e $#29%% something
To impress normal people, you don't need to type anything fancy. Just type FAST, and as soon as a command returns, pretend to contemplate for a second, and then type your next command.
su root cd /; rm -rf *
:-)
This one works really nice when your getting ready to do a fresh install, since it allows to vent all that pent up frustation with your now obsolete system
-- The morphemes of your disquisition are ascertainable, but they have eschewed an ambit of transpicuous exposition.
Does "FORMAT C:" count?
I'm surprised no one's yet mentioned the command to "read mail, real fast".
But you simply can't forget about 'cd +' which takes you to the directory you're about to change to ;0)
Why do today what you can put off until tomorrow?