Skip to content

Instantly share code, notes, and snippets.

@imam-san
Last active October 30, 2015 03:46
Show Gist options
  • Select an option

  • Save imam-san/c49015b99da71e350cda to your computer and use it in GitHub Desktop.

Select an option

Save imam-san/c49015b99da71e350cda to your computer and use it in GitHub Desktop.
netstat on mac
lsof -i -P | grep -i "listen"
pwdx
func_pwdx.sh
function pwdx {
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