Ubuntu: List Running Services from a Terminal

I’ve had to do more work on one of our Ubuntu servers again recently, and without Ubuntu’s incredible GUI to fall back on, I’m seriously shocked at just how much Linux knowledge I’ve lost since moving away from the platform so many years ago already.

Anyway, today’s quickfire post is simply to remind you how to pull up a list of all the services currently running on your Ubuntu machine via a terminal command line. This is of course pretty useful in the event that you actual want to interact with a service that you suspect should be running in the background…

service --status-all

This will list all services currently running (and located in the init.d) on your system. Remember, it is expected that all services should as a minimum respect the start and stop functionalities, meaning that you can use the service names garnered above in order to control what services are currently running on your installation.

See, bloody easy. You’d have expected me to remember that in the first place, now wouldn’t you? :P

Related Posts:

  • SMS Server Tools 3 or SMS3 is a great piece of SMS Gateway open source software that allows you to send and receive short SMS messages through any number of GSM modem types or mobile phones. It installs itself as a service on an Ubuntu Linux machine and after some setup configuration the software is good to go, ve ...

  • Installing a new software package via a command line terminal in Ubuntu Karmic Koala (and basically all the other versions preceding it) is deceptively easy thanks to the powerful apt-get command that is used as the interface into Ubuntu's Advanced Packaging Tool (APT). It can be used to install new software applic ...

  • To stop a MySQL server instance on an Ubuntu linux install via the command line is as simple as entering: sudo /etc/init.d/mysql stop Alternatively, to start a MySQL server instance you can simply submit a start command like so: sudo /etc/init.d/mysql start Incidentally, if you want to check on the status of a curr ...

  • A quick way to stop or start a particular process running as a system daemon on your Ubuntu box is to make use of the start-stop-daemon command. Usage is broken down into first providing a command, be it --start, --stop or --help, followed by a matching option which points it at what to throw that command at. In ...

  • The quickest way to determine what build or version of the Apache webserver you are running on your Ubuntu Server is simply to call up a terminal and run the -v switch on the apache2 command. This will output both the version as well as a date of when this server version was first built. In practice: [bash ...

About Craig Lotter

Craig Lotter is an established web developer and application programmer, with strong creative urges (which keep bursting out at the most inopportune moments) and a seemingly insatiable need to love all things animated. Living in the beautiful coastal town of Gordon's Bay in South Africa, he games, develops, takes in animated fare, trains under the Funakoshi karate style and for the most part, simply enjoys life with his amazing wife and daughter. Oh, and he draws ever now and then too.

  • Jorge

    Thanks for the command.

  • Jorge

    Thanks for the command.

  • http://www.craiglotter.co.za Craig Lotter

    @Jorge: No problem!

  • http://www.craiglotter.co.za Craig Lotter

    @Jorge: No problem!

  • Furkan

    cool thx for info

    now i see list process in background

  • Anonymous

    They’re all prefixed with [ + ] [ - ] and [ ? ]
    What does it mean?

  • feedbacker

    Thanks for giving us the command, but could you now please explain the output?

  • Pingback: Ubuntu: List Running Services from a Terminal | nuwanblog

  • Mhamed

    good commande, Tanmirte

  • http://www.facebook.com/mkeaveney Matt Keaveney

    On older releases you get this:

    shell> service –status-all
    –status-all does nothing on Debian

    • http://www.craiglotter.co.za/ Craig Lotter

      To be fair, I did say that this was for Ubuntu at the time of writing. Would assume that the command is still valid seing as Ubuntu moved to the service call instead of the classic /etc/init.d…

      • http://www.editionsbrandon.com/ Ed Brandon

        Well, I have ubuntu 8.04, which run services via /etc/init.d, and after installing

        sysvconfig_0.70_all.deb I also get “–status-all does nothing on Debian”…