From dbd01d0d408b2c3ba67cec34d99675a2303489f8 Mon Sep 17 00:00:00 2001 From: Bonnie I-Man Ng Date: Thu, 12 Sep 2019 10:20:31 +0800 Subject: [PATCH] add 'System' command add pgrep for checking whether a process is running --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 424f0d7..d2cb354 100644 --- a/README.md +++ b/README.md @@ -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 ```