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

unix command to see processes running

ps
top
w
Comment

linux running processes by name

ps aux | grep firefox
sudo ps aux | grep vim
sudo ps -aux | egrep 'sshd|openvpn|nginx'
Comment

list of current processes linux

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

command running processes linux

ps -u [username]
Comment

PREVIOUS NEXT
Code Example
Shell :: ngx-material-file-input 
Shell :: apply gitignore after commit 
Shell :: python install opencv 
Shell :: echo with color from bash 
Shell :: gitlab set global username and password 
Shell :: upload folder to gitlab 
Shell :: list of files in git commit 
Shell :: command to check the free disk space 
Shell :: a script that generates the assembly code of a c code and save it in an output file 
Shell :: linux home dir shortcut 
Shell :: ubuntu install arial font 
Shell :: vim how to append to every line 
Shell :: git see changes to one file 
Shell :: powershell add to env path 
Shell :: mac terminal restart 
Shell :: mix ecto.migrate 
Shell :: conda install jupyter notebook 
Shell :: curl ssl verify false cli 
Shell :: docker save in windows 
Shell :: how to find ip adress of a web side kali linux 
Shell :: configuration file is group-readable. This is insecure linux 
Shell :: kill screen sessions 
Shell :: nvm linux 
Shell :: find command recursive 
Shell :: add gif to readme.so 
Shell :: bash read file into variable 
Shell :: install golang ubuntu 
Shell :: sequelize installation 
Shell :: whoami 
Shell :: install spicetify on windows 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =