Skip to content

Instantly share code, notes, and snippets.

@ezhov-da
Last active February 5, 2020 12:48
Show Gist options
  • Save ezhov-da/9a3a287a38cb0f61e62a3d5c32f19ad7 to your computer and use it in GitHub Desktop.
Save ezhov-da/9a3a287a38cb0f61e62a3d5c32f19ad7 to your computer and use it in GitHub Desktop.
кто висит на порту
netstat -tpln
PID_PORT=$(sudo netstat -anpt | grep 1099 | cut -d 'N' -f 2 | cut -d '/' -f 1) && sudo ps -C -p $PID_PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment