Hendrik Lammers

Last argument of the previous command

The $_ variable can be used to refer to the last argument of the previously executed command.

For example: Go to the same directory that was used for the ls command

$ ls /home/user/path/to/directory
$ cd $_