-
-
Save chris-peterson/e1988c4d2e7a5bd8d3a676bc56966ea8 to your computer and use it in GitHub Desktop.
get working directory for arbitrary PID
This file contains 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
lsof -a -p <PID> -d cwd -F n | grep '^n' | sed 's/^n//' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment