Skip to content

Instantly share code, notes, and snippets.

@isthatcentered
Last active June 29, 2019 05:26
Show Gist options
  • Save isthatcentered/5bde2fc1ef76fb318e21b94d5118d834 to your computer and use it in GitHub Desktop.
Save isthatcentered/5bde2fc1ef76fb318e21b94d5118d834 to your computer and use it in GitHub Desktop.
Processes
ps -ax # List all running processes
ps -ax | grep {X} # Get all processes with name {X} Ex: ps -ax | grep Skype
kill {pid} # Kill a running process. Ex: kill 44345
# Kill a port
kill -2 $(lsof -t -i:4200) # https://stackoverflow.com/questions/39091735/port-4200-is-already-in-use-when-running-the-ng-serve-command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment