Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
LiveTheDream
on Aug 11, 2011
|
parent
|
context
|
favorite
| on:
Awesome but commonly unknown Linux Commands
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
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: