Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

list pid bash

$ ps S | awk '{print  $  1 }' | grep -E '[0-9]'
3082
3137
8207
8263
8264
8284
8357
8358
835
Comment

list pid bash

$ vim &
[1] 8263
$ ipython &
[2] 8264
$ ps S
 PID TTY      STAT   TIME COMMAND
 3082 pts/0    Ss     0:00 bash
 3137 pts/0    Sl+    0:00 python /usr/bin/ipython
 8207 pts/2    Ss     0:00 bash
 8263 pts/2    T      0:00 vim
 8264 pts/2    Tl     0:00 python /usr/bin/ipython
 8284 pts/2    Tl     0:00 python /usr/bin/ipython
 8355 pts/2    R+     0:00 ps S
Comment

PREVIOUS NEXT
Code Example
Shell :: step6 pgadmin ubuntu 20.04 
Shell :: ssh key exchange 
Shell :: git prune local branches 
Shell :: install gitlab-ce on centos 
Shell :: install gulp gulp-util exited with code 1 
Shell :: shell save variable 
Shell :: get virtual display linux 
Shell :: chakraUI 
Shell :: linux print pdf from console 
Shell :: wsl localhost not working 
Shell :: how to git commit and push 
Shell :: bash array 
Shell :: how to ssh 
Shell :: basename linux command 
Shell :: shell substring last characters 
Shell :: set an editor for git 
Shell :: save command output 
Shell :: login to docker registry from terminal 
Shell :: how to undo a bunch of commit sent that was pushed 
Shell :: docker network Rabbitmq 
Shell :: hyper terminal 
Shell :: bash loop over files with extension 
Shell :: time is not updating from internet ubuntu 
Shell :: rebase github 
Shell :: grep a variable 
Shell :: docker run multiple commands in dockerfile 
Shell :: centos 8 gui 
Shell :: how to execute script and pass a parameterin linux 
Shell :: dos dir 
Shell :: how to update git password in windows 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =