Skip to content

Instantly share code, notes, and snippets.

@imam-san
Created April 30, 2016 14:53
Show Gist options
  • Save imam-san/dca0b1047ef3867a8584fb8018a2cf58 to your computer and use it in GitHub Desktop.
Save imam-san/dca0b1047ef3867a8584fb8018a2cf58 to your computer and use it in GitHub Desktop.
lsof -i -n -P | grep
@imam-san
Copy link
Author

PWDX
lsof -a -p $1 -d cwd -n | tail -1 | awk '{print $NF}'

@imam-san
Copy link
Author

lsof -i -n -P | grep TCP

@imam-san
Copy link
Author

Window
netstat -a -o -n

taskkill /F /PID e.g28344

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment