Get 25% off on any of our premium products till Sept 30th, 2017. Offer code: cjaddons

While working on multiple projects I always need to copy the current path of a directory in Terminal. I used to use the commandpwd in the terminal which prints the current directory path in the terminal and then I have to select the path with the mouse to copy and paste the same where I needed.

I hate to use the mouse as it wastes a lot of time and to save time and copy the current path without selecting it with the mouse, I found this command and use it all the time.

pwd | pbcopy

This command will copy the current directory path to the clipboard and we can then press CMD+V (CTRL+V for Windows) to paste the path wherever needed.

I hope this will help someone saving time and be more productive.

Mohit Aneja

  • Stay up-to-date!
    Join our mailing list to receive product updates & announcements. Every month we give away 10 FREE Licenses to our lucky subscribers.

    No Spam Ever!

Stay up-to-date!

Get notified of product updates, new products and freebies.