HN user

cschol

6 karma
Posts0
Comments3
View on HN
No posts found.
Unix tricks 13 years ago

Good point. I usually don't supply the file name of the second argument. Then it would be equivalent.

Unix tricks 13 years ago

Alt + . – use the last word of the previous command.

    $ cp file.txt /some/annoyingly/deep/target/directory/other.txt
    $ cd then press Alt + .
    $ pwd # => /some/annoyingly/deep/target/directory