

- Welcome to Geeksww.com
How to find out if a particular process is running or not (for Linux/Unix)?
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.
Did this tutorial help a little? How about buy me a cup of coffee?
Please feel free to use the comments form below if you have any questions or need more explanation on anything. I recommend thoroughy testing on a production-like test system first before moving to production.
tags cloud
popular searches
free download for mysql database server 5.1.5, bison, gearman, install cairo, php, java, install mysql, laptop, linux, mysql mysql, mysql, source code, mysql initialization, tools, ubuntu
Similar Tutorials:
- Installing Gearman shared PECL extension for PHP on Debian/Ubuntu Linux
- Installing MS SQL Server Client Library on Linux/Unix
- Installing Flex (The fast lexical analyzer) on Ubuntu Linux
- Turning the system beep off (for BASH)
- How to download, compile, and install CMake on Linux
Tutorials in 'Operating Systems > Linux' (more):
- How to download, compile, and install CMake on Linux
- How to download, compile, and install GNU ncurses on Debian/Ubuntu Linux?
- How to install libevent on Debian/Ubuntu/Centos Linux?
- How to install MySQL Gearman UDF on Ubuntu/Debian Linux
- Installing Gearman shared PECL extension for PHP on Debian/Ubuntu Linux
Comments (write a comment):
With the given command, you can type in anything for the process name and you will get something in return. Tested on ubuntu 12. Posted by: omar on Oct 01, 2012