- 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 do not guarantee a response.
IMPORTANT: You must thoroughy test any instructions on a production-like test environment first before trying anything on production systems. And, make sure it is tested for security, privacy, and safety. See our terms here.
tags cloud
popular searches
free download for mysql database server 5.1.5, bison, gearman, source code, php, install cairo, laptop, java, mysql, install mysql, linux, mysql initialization, mysql mysql, tools, ubuntu
Similar Tutorials:
- Installing Gearman shared PECL extension for PHP on Debian/Ubuntu Linux
- How to setup Spamassasin to run as a deamon?
- How to download, compile, and install Python on Ubuntu/Debian/ CentOS Linux
- How to download and install Bison (GNU Parser Generator) on Ubuntu Linux
- Bash script to compare remote directory's files using file size
Tutorials in 'Operating Systems > Linux' (more):
- Bash script to compare remote directory's files using file size
- Script to transfer files to remote server with verification
- setfacl: command not found
- How to download, compile, and install CMake on Linux
- How to download, compile, and install GNU ncurses 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
leave a comment