Useful Linux commands

date
Jan 20, 2025
outer_link
slug
linux-commands
status
Published
tags
Linux
summary
type
Snippet

Find all processes running

netstat -pltn
# optionally, use grep to search anything with it
# eg. if you want to search for process running on port 4321:
netstat -pltn | grep 4321/
# can also use this
netstat -tulpen

Kill process by process id

kill 4321
# use -9 to kill forcefully

Mohamed Irfan © 2025