While working on multiple projects I always need to copy the current path of a directory in Terminal. I used to use the command
pwd 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.
Join our mailing list to receive product updates & announcements. Every month we give away 10 FREE Licenses to our lucky subscribers.
We specialize in creating unique, practical and fully customizable solutions for web and mobile.
Our more than 10 years experience of this industry enable us to come up with out of the box and affordable solutions for any size of project.
Click here to create a ticket, if you are facing any issues with any of our products and freebies.