[kwlug-disc] my new favourite command
3lucid at gmail.com
Thu Dec 2 18:02:55 EST 2010
On Thu, Dec 2, 2010 at 3:36 PM, Chris Frey <cdfrey at foursquare.net> wrote:
> What other new commands have people learned lately?
Not a command per se, but more a Bash (or possibly most shells) feature:
$ mkdir foo
$ cd !$
This is a common way I use it. The "!$" is the last token of the previous
command that you issued. So if you ever have commands of the form
$ cmd1 arg1 arg2 ... argn
$ cmd2 argn
the !$ is useful.
More information about the kwlug-disc