Kill a Process

STEP 1: Finding the PID

Case 1: Terminate the process of a particular program

Command: ps aux | grep “[n]ginx”

Decoding the command:

Case 2: Clear a particular port

Command: sudo lsof -i :8080

Decoding the command:

STEP 2: Killing the Process

Command: sudo kill -9 12514

Decoding the command:

--

--

--

Developer with 3 yrs of industrial experience in developing scalable web applications.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Series on Exception: Ep-01

CSAW 2021 Finals CTF RE Challenge Write-up : Maze

5 Best Docker Online Courses for Java and Spring Boot Developers in 2022

5 Best Docker Online Courses

Cloud Service Types: Understanding IaaS, PaaS, and SaaS

Rocket.Chat Repositories Overview

Getting started with Pinbase

RosaKit — librosa for iOS

Rebuilding my Raspberry PI 4 home server with Fedora Server 36

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abhay Jain

Abhay Jain

Developer with 3 yrs of industrial experience in developing scalable web applications.

More from Medium

Emacs! A Cheat-Sheet!

How I use an old laptop as a local server

Bash alias for cleaning git branches