-
-
Save sify21/331de64a6a5ca9f278f726600b4b7a88 to your computer and use it in GitHub Desktop.
pwdx for mac. Usage: pwx pid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function pwdx { | |
lsof -a -d cwd -p $1 -n -Fn | awk '/^n/ {print substr($0,2)}' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment