Ngô Trường Vủ
New member
How do you check if a program is running or not?
Answer
Bash check if process is running or not
Answer
Bash check if process is running or not
- pgrep command – Looks through the currently running bash processes on Linux and lists the process IDs (PID) on screen.
- pidof command – Find the process ID of a running program on Linux or Unix-like system.