Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

show all processes linux

ps -aux | less
Comment

how to list running processes in linux

ps -ef 

OR

ps -ef | grep <process-to-filter> 
e.g 
ps-ef | grep node
Comment

list all running processes linux

ps aux # OR: ps${IFS}aux

#OUTPUT:
#x represents a wildcard

#USER         PID  %CPU  %MEM    VSZ   RSS   TTY     STAT START   TIME COMMAND
#runner         1  0.3   0.0  xxxxxxx  xxxxx ?       Ssl  22:05   0:02 /nix/store/xxxxxxxxxxxxxxx
#runner        28  0.4   0.1   xxxxxx  xxxxx ?       Sl   22:11   0:01 /home/runner/xxxxxxxxxxxxx
#runner        60  0.4   0.1   xxxxxx  xxxxx ?       Sl   22:13   0:01 /home/runner/xxxxxxxxxxxxx
#runner        77  0.4   0.1   xxxxxx  xxxxx ?       Sl   22:13   0:00 /home/runner/xxxxxxxxxxxxx
#runner        98  0.2   0.0  xxxxxxx  xxxxx pts/0   Ssl+ 22:13   0:00 /nix/store/xxxxxxxxxxxxxxx
#runner       110  0.0   0.0     xxxx  xxxx  pts/1   Ss   22:13   0:00 /nix/store/xxxxxxxxxxxxxxx
Comment

check all running processes linux

# memory usage (in percentage) of all the process running with pid
ps -o pid,user,%mem,command ax | sort -b -k3 -r
# all running process
ps aux
# Memory usage of a specific pid(917 is an example here process)
sudo pmap 917 | tail -n 1
Comment

list of current processes linux

# Run command below to get list of "major" processes
ps
Comment

PREVIOUS NEXT
Code Example
Shell :: show branch detail branch info in git 
Shell :: error: cannot run ssh: No such file or directory 
Shell :: install brew on linux 
Shell :: git code push 
Shell :: create package in ros2 
Shell :: github readme stats 
Shell :: shell script to count number of lines in a file 
Shell :: run ionic capacitor device 
Shell :: speedtest cli mac 
Shell :: create new branch without losing changes 
Shell :: permission denied /dev/kvm 
Shell :: bash script getopts no argument 
Shell :: docker update all images 
Shell :: httpd https 
Shell :: windows nginx stop 
Shell :: install golang 
Shell :: linux ogg to wav 
Shell :: how to create a group in linux 
Shell :: navigate to a directory linux 
Shell :: pause bash script 
Shell :: new commit 
Shell :: how to both add and commit in git 
Shell :: install flutter on linux 
Shell :: github get parent branch 
Shell :: install slack on linux 
Shell :: how to install trello on linux 
Shell :: how to remove all space in file 
Shell :: git push specify ssh key 
Shell :: color logging python 
Shell :: laravel installation from github 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =