Ubuntu FAQ: How do I list all of the services on my Ubuntu 16, 18, or 20 system from the Linux command line?
Answer: Use this command:
service --status-all
Here’s an example of what this looks like on an Ubuntu 18 LTS system:
The meaning of the Ubuntu service
command output
From the Ubuntu Linux service
man page:
service --status-all
runs all init scripts, in alphabetical order, with the status
command. The status is:
[ + ]
for running services[ - ]
for stopped services[ ? ]
for services without a ‘status’ command
This option only calls status for sysvinit jobs; upstart jobs can be queried in a similar manner with initctl list
.
How to show the Ubuntu version
In a slightly-related note, you can show your Ubuntu version information with the lsb_release -a
command:
root> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic