How can i list all stopped services in the order that they were stopped

6,269

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
Share:
6,269

Related videos on Youtube

Arun Anson
Author by

Arun Anson

I am an awesome young man who loves to be called artist. Never hates books but i love to read very less, draw and shoot more often. I recognize everyone as an artist.

Updated on September 18, 2022

Comments

  • Arun Anson
    Arun Anson over 1 year

    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.

    • Ortomala Lokni
      Ortomala Lokni over 8 years
      Which version of Debian?
    • Arun Anson
      Arun Anson over 8 years
      I'm using Debian 7.9 on the server.