The Tool Shed: bash history shortcuts

Page last modified Tue Oct 5 14:15:00 2004

The Story

The old Greybeard down the hall starts complaining that ``you're getting sloppy at the shell, youngster''. You look down at your computer, a fire-breathing 8Ghz quad-CPU beast with RAM that it's probably measured in cubic yards. ``Errrr?'' seems like the most appropriate reply.

``Don't worry, I'll fix ya'' the Greybeard says menacingly.

The next morning you arrive at work only to discover that your FireBreather 3000 has been replaced with ... an old DECStation 5000/25. That 25, by the way, refers to the Mhz of the CPU (a MIPS R3000). It's not all bad, though, since this is a classic Unix workstation. It's like working with living history.

After about 15 minutes of poking around the filesystem, and you're ready to get to work.

After about two minutes of attempting to work, you realize that he Greybeard was right. You'd been getting sloppy with using the shell efficiently, and this little computer makes you pay for it by waiting. And waiting. And waiting.

So you start digging up your old notes and reading through them. It's a matter of necessity now :-)

The Details

Note that these shortcuts were written with the bash shell in mind, but similar shortcuts are available in other advanced shells (such as zsh, ksh and tcsh).

The Wrap-up

The little DecStation turns out to be a very capable machine as long as you treat it well. You grow fairly fond of it and decide to keep it as your workstation (you can always telnet to the FireBreather if you have a task that needs more horsepower).

That just leaves the little matter of revenge ...

The next morning the Greybeard comes in to work and discover that his FireBreather 3000 has been replaced with ... a 486. Running Windows 3.1.

That'll teach him :-)



Title Image - left

Recent blog entries

Categories:

General (13)
Hardware (2)
MetaNetwork (9)
Organizations (4)
Security (3)
SeekingFire Meta (10)
Unix (2)

Subscribe: RSS/Atom

© 2002-2005 Tillman Hodgson, security consultant.
(Copyright Details)

Hacker glider emblem