4 ms·
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
by LiveTheDream 15y ago
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