LWN.net Logo

CLI Magic: Using command history in the bash shell (Linux.com)

CLI Magic: Using command history in the bash shell (Linux.com)

Posted Jul 4, 2006 4:24 UTC (Tue) by xoddam (subscriber, #2322)
In reply to: CLI Magic: Using command history in the bash shell (Linux.com) by michaelk
Parent article: CLI Magic: Using command history in the bash shell (Linux.com)

Well, you learn something new every day. Thanks!

... but this example hardly disproves that the syntax is arcane! :-)


(Log in to post comments)

CLI Magic: Using command history in the bash shell (Linux.com)

Posted Jul 4, 2006 7:38 UTC (Tue) by glettieri (subscriber, #15705) [Link]

!$ is useful. However, I prefer "Alt + .": it rewrites the last argument from the previous command line, and you can use it many times to get arguments further down in the command history.

it just gets better!

Posted Jul 4, 2006 7:46 UTC (Tue) by xoddam (subscriber, #2322) [Link]

"Invent something in the morning and they're making cheap imitations by
noontime!" -- Sesame Street

(I wish I could remember the name of the inventor; Google can't help me)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds