-
-
Save imam-san/f70444c2b25805bd04b40df946894f18 to your computer and use it in GitHub Desktop.
My pwdx implementation for a mac
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
#!/bin/bash | |
lsof -a -p $1 -d cwd -n | tail -1 | awk '{print $NF}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo lsof -PiTCP -sTCP:LISTEN