News for hackers. Stuff that matters.
Re:Awesome but commonly unknown Linux Commands by LiveTheDream on Thursday August 11, 2011 @12:39AM (#2871418)
in bash you can use $_ to access the last argument of the previous command. It lets you do things like this:

    $ pwd
    /home/foo
    $ mkdir -p bar/baz/qux && cd $_
    $ pwd
    /home/foo/bar/baz/qux

There are no comments on this comment yet.