How-To: Copy current directory path in Terminal

Spread the love

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 that 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 save time and be more productive.+

Website Design Services

Revamp your online presence with our top-notch website design services! Elevate your brand and capture your audience’s attention with stunning, responsive designs tailored to your unique needs. Our skilled team blends creativity with functionality, ensuring a seamless user experience that drives results. From eye-catching visuals to user-friendly navigation, we prioritize every detail to make your website stand out. Let us transform your vision into a captivating digital reality. Contact us today for expert website design services that leave a lasting impression. Your success is our priority!

Let’s have a quick call to discuss our approach develop website.

Our Services

Leave a Reply

Your email address will not be published. Required fields are marked *

Enquiry Now

Our consultants will respond back within 8 business hours or less.