Skip to content

Instantly share code, notes, and snippets.

@MoathOthman
Last active July 24, 2018 11:20
Show Gist options
  • Save MoathOthman/693de44543dd704a6c2e to your computer and use it in GitHub Desktop.
Save MoathOthman/693de44543dd704a6c2e to your computer and use it in GitHub Desktop.
Commans to Close an application on some port on ubuntu/mac
fuser -v 8080/tcp -- give you list of pids using that port and that protocol
kill -s 15 pid -- kill //the process 15 could be 9 as well
or fuser -f ** not sure
- ps -aux |grep node
Close an application on some port on MAC
lsof | grep tcp
kill -9 ppid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment