0

I have a Debian server on which there are certain stopped services. I would like to know how can i list all the services in the order that they were stopped. Also would like to get the time when they were stopped.

  • Which version of Debian? – Ortomala Lokni Jan 7 '16 at 11:35
  • I'm using Debian 7.9 on the server. – Arun Anson Jan 7 '16 at 11:52
1

The easiest way to find out what processes are running on your server is to run the top command:

became root

 top

or

 sudo apt-get install htop

became root

  htop

or

  ps

to kill process

  kill PID_of_target_process

You can list all services and their status by:

  service --status-all

Save Process Snapshot to a file

 top -b -n1 > /tmp/process.log

you can email result to yourself:

 top -b -n1 | mail -s 'Process snapshot' yourmaildotcom

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.