Sunday, August 14, 2022

Check and log running process in Ubuntu Linux

ps

ps aux | less // q to exit

ps aux | grep process

ps -U user

pstree

pgrep processname // show process pid

pgrep -l processname // show process pid & name

There is separate directory for every process with name as pid number in /proc

ipcs // list of the IPC resources currently in use

kill pid

killall processname

lsof -p pid | less // show list of all the files open for the process

pkill processname

top

udevadm monitor

Windows Ctrl+Alt+Del equivalent in Linux

No comments:

Post a Comment