|
I have tried instructions below on Ubuntu Server but should work for all Linux distributions as well as for Unixes (e.g. Max OS X, FreeBSD etc.).
Running the command below will list all running processes on the system.
ps aux
Now, we use the "grep" command to filter out the process we are looking for.
ps aux | grep <process_name>
Replace <process_name> with the name of the process you want to search for. The command above will list all the lines from the output of "ps aux" that contain the string specified with the "grep" command.
For example, if you want to find if Apache Web Server is running or not. You'll run the command as follows:
ps aux | grep httpd
if the output shows some lines with httpd then that means Apache Web Server (or some process with the name "httpd") is running.
Please feel free to use the comments form below if you have any questions or need more explanation on anything.
|
Tags
linux,
Popular Searches
php, linux, mysql, ubuntu, mysql mysql, tools, install mysql, gearman, source code, java
more>> |
Comments (write a comment):
0 comments so far. Be the first one to leave a comment on this article.