Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What daemons are running?

Status
Not open for further replies.

geokor

Programmer
Aug 16, 2000
126
US
I've looked everywhere I know of (man, whatis, apropos) and can't find a reference to the command that lists what daemons or services are currently running. I know I saw it recently.
BTW, can anyone direct me to a good book (thorough) on Linux (Red Hat, currently I am running 7.0 as a LAN server) so I can find this stuff out for myself?

Thanks a 1,000,000!

George K
 
run

netstat -an

and look for "LISTEN"

Look at the "Local Address" column, and the number after the ":". Look in /etc/services for that same number, and that indicates which "service" is running.

As for daemons, just a "ps -ef" with no users logged on running anything will show you mose daemons. They usually have "/usr/bin", "/usr/sbin" or "/etc" or "/opt" in front of the name.

Bill.
 
Thank you!

George K
I'd like George to reply by:
E-mail[] Phone[] Swallow- European[] African[]
 
I also found a command called top that seems to be what I was originally thinking of.

George K
I'd like George to reply by:
E-mail[] Phone[] Swallow- European[] African[]
 
Another thing to try on a recent redhat box is:

#service --status-all

which will list all the states of the SYS5 system daemons (those automatically started by the system - or available to it) and specific details on some of them - eg. firewall, automount etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top