http://www.bashoneliners.com/ – Exactly what it says on the tin.
Among our favourites were:
- Do something in another directory without going there
for example: (cd /tmp; tar c . ) > tmp.tar
- Find the target path a symlink is pointing to
for example: readlink /etc/rmt
- List or edit and re-execute commands from the history list
try: fc –help
- Repeat the previous command but with a string replacement
for example: mysql -h msyql.somewhere.com -u someone -p somedatabase
…ooops, I put msyql.somewhere…. instead of mysql.somewhere…
If I type ^msyql^mysql and hit enter and the typo is substituted for the correction in the previous command.
Well Handy (-: