4
rated 0 times
[
4]
[
0]
/ answers: 1 / hits: 1287
/ 1 Year ago, sat, january 21, 2023, 5:01:23
I often need to check if a process is running, so I use one of these:
ps aux | grep myprocess
ps -Fe | grep myprocess
top
pgrep myprocess (only shows the PID)
pkill myprocess (if I want to kill it)
All of the above commands work well but, is there a shorter command to do this?
Any answer is appreciated, but the chosen one needs to be...
- A built in solution, as I work with many different devices.
- Enables to use a pattern.
- Gives you similar information than ps aux.
- Shorter than what we already know.
Thanks
More From » command-line