add 'System' command

add pgrep for checking whether a process is running
This commit is contained in:
Bonnie I-Man Ng 2019-09-12 10:20:31 +08:00 committed by GitHub
parent 60ed6bfba6
commit dbd01d0d40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1935,6 +1935,9 @@ pidof sublime_text
#pgrep, you don't have to type the whole program name
pgrep sublim
#pgrep, echo 1 if process found, echo 0 if no such process
pgrep -q sublime_text && echo 1 || echo 0
#top, takes longer time
top|grep sublime_text
```