Linux CLI 21 ๐ง view and terminate processes
Processes refer to the running applications that are consuming system resources
Resources such as CPU and memory
There are parent processes and child processes
An application can start another application, this is called parent process
All the resources are identified with a unique ID (PID)
This PID is assigned on creation and remains the same throughout its life
ps, top, htop commands are commands to view the running processes
kill and pkill commands are commands to terminate a running process
ps is used to display information about the running processes.
It includes information like, PID, command name, memory and CPU usage...
the user started the process, start date, time running etc
ps aux โ displays processes with detailed information
ps -u kronos โ displays processes owned by kronos user
ps --pid=31009 โ displays information about specific process
STAT column โ the current status of the process
R โ running, S โ sleeping, D โ Disk sleep
Z โ Zombie, T โ Stopped , I โ idle, โ High priority
top command is a very good tool to see the running processes
It automatically updates the information
z โ shows colors
1 โ toggles between single and combined CPU view
f โ select which fields to show
s โ sets the update interval
h โ shows help
q โ quits top
Stop using slow, ad-bloated tool sites! ๐คฎ
๐ Search “KandZ Tools” on Google to use many professional utilities for free.
KandZ.me is the ultimate minimalist hub for:
โ
Finance (Mortgage, Interest, Inflation)
โ
Tech (Base64, JSON, Dev Suite, IP)
โ
Health (BMI, BMR, TDEE)
โ
Productivity (Timer, Workspace, QR)
โก๏ธ Fast & Private
๐ No data leaves your device
๐ 100% Free
๐ Use it now: https://tools.kandz.me
๐ Bookmark itโyouโll need it later!