Q. How do I list all currently running services in Fedora / RHEL / CentOS Linux server?
A. There are various ways and tools to find and list all running services under Fedora / RHEL / CentOS Linux systems.
service command - list running services
service --status-all
service --status-all | grep ntpd
service --status-all | less
Print the status of any service
To print the status of apache (httpd) service:
service httpd status
List all known services (configured via SysV)
chkconfig --list
List service and their open ports
netstat -tulpn
Turn on / off service
ntsysv
chkconfig service off
chkconfig service on
chkconfig httpd off
chkconfig ntpd on
ntsysv is a simple interface for configuring runlevel services which are also configurable through chkconfig. By default, it configures the current runlevel. Just type ntsysv and select service you want to run:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop


![Linux Disable Bluetooth [ Bluetooth Input Devices (hidd) ]](http://s0.cyberciti.org/images/rp/1/18.jpg)









{ 13 comments… read them below or add one }
it is help to view port status and services
would these work on a ubuntu-server install? i would really have some use for commands to list running services.
Yes, it should work – if you have sysvconfig package installed.
thanks vivek, am hoping its already installed coz on a server you definitely wanna check on services.
but isn’t it like ubuntu doesn’t follow the SysV model, especially in terms of the init system but has its own upstart something?
service httpd mysqld tomcat5 start/stop/restart/status
chkconfig service on/off
netstat -tulpn
ntsysv gui
service service start is different from chkconfig , when the server is rebooted , service start will not work .
In debian/ubuntu, install sysv-rc-conf and sysvinit-utils. That’s the first thing I do on any .deb box. These should be default with debian and ubuntu installs, IMO.
I would love an article discribing all the “default” services in a Centos 5.x installation and which to keep for performance and secrutiy and which to turn off. Basically discribing the more common ones.
When i list with ntsysv i see a ton i have no clue what really does ;)
thanks, that was really useful..
Dear sir!
Right now i have some question about Centos.
i can not configure some main service dns, apache …
please you help me!!!
nice information. thank you
:D thank you so much dude,
netstat -tulpn
For Ubuntu 12.04, you can list service status with 2 commands (first for SysV services and second for upstart services):
service –status-all
initctl list