By Alvin Alexander. Last updated: May 15, 2017
If you want to copy the current macOS Terminal path to the clipboard, you can do it with this simple command:
$ pwd | pbcopy
pwd
prints the path to STDOUT, and pbcopy
reads that and copies it to the macOS clipboard. Once the path is on the clipboard you can paste it into your other applications.
Of course you can also create an alias, like this:
alias path="pwd | pbcopy"
If you wanted to see how to copy the current macOS Terminal path to the clipboard, I hope this is helpful.