Process Management Reference

July 7, 2016   

Commands Reference:

top - Display all running processes
ps - Display currently active processes
ps aux
ps aux | grep proc - List processes named proc

killall proc - Kill all processes named proc
kill pid - Kill process id pid
kill -9 pid

proc & - Run process named proc in background
bg - Lists stopped or background jobs
fg - Bring recent proccess to foreground

screen -d -R name_of_screen - Enter screen
-d: Detached from others
-R: Create if not exists
screen -ls - List screens
screen -S screen_name -X quit - Kill detached session press ctrl + a + d - Run in Background
press ctrl + d - Terminat screen
ps -p $(pidof proc | sed ’s/\s/,/g’) -o %cpu,%mem,cmd - CPU and Memory Consumed by a process named proc

References:



comments powered by Disqus