To Check Which Service is Running at Present in System what
is the Command?
Answers were Sorted based on User's Feedback
Answer / waleed badr
service --status-all
ps -ef ---> is used to check what processes are running at
present in the system
| Is This Answer Correct ? | 29 Yes | 3 No |
Answer / chandbashashaik
$ ps will let you know wat is the process running at present
| Is This Answer Correct ? | 27 Yes | 6 No |
Answer / dave_chamoli82
ps is used to view the process not the service. To view the
current service running at present in system is
# service --status-all
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / shanu
# service --status-all | grep -i "running"
crond (pid 3974) is running...
cupsd (pid 3895) is running...
gpm (pid 3965) is running...
hald (pid 3767) is running...
hidd (pid 3815) is running...
hpiod (pid 3864) is running...
hpssd (pid 3869) is running...
or else
to check if what services are set to run(or on) by default(at system boot)
use the below.
1.check the current run level using
# runlevel
N 5
2.check the list of services set to run at boot time
using
# chkconfig --list > /tmp/service.log
//the output will look like this
yum-updatesd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
3.check the same using awk command according to your current run level
awk '{if ($5 == "3:on") print $1}' /tmp/service.log
Thanks :)
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / rawoof
hello am rawoof now am learning linux redhat 5 versions .i
have some important interviews questons on linux with
answers plz help me aand plz send it my
id:rawoof_md85@yahoo.co.in
| Is This Answer Correct ? | 0 Yes | 2 No |
What is du command in linux?
What is SFC command?
I know ssh, telnet, dns,apache all are worked on TCP/UDP but i want to know any one service which are working on UDP only?
How do I find the console in linux?
which command is used to see all the system configuration? like hardware, HDD, memory etc.
14 Answers ADS, eClinicalWorks, NJN,
What does the top command display?
our wish to print the file vacations with 60 lines to a page. Which command will accomplish this?
How will you execute a java program inside a kornshell script?
You need to see the last fifteen lines of the files dog, cat and horse. What command should you use?
What is file and example?
What command would you use to check how much memory is being used by linux?
What are the commands in linux?