Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pwdx for mac. Usage: pwx pid
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