Home > linux, mac > command line execute with previous command args

command line execute with previous command args

Problem:

 ls /some/long/path/to/directory/     

now you want to cd into this directory and you are lazy 
Solution:

 cd !$     

 

yay unix greatness!

Categories: linux, mac
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.