Is there any command that would show all the available services in my wheezy Debian based OS?
I know that in order to see all the running services you can use
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Wheezy uses SysV init, and all the services are controlled with special shell scripts in
ls /etc/init.d will list them. These files also contain a description of the service at the top, and the directory contains a
Some but not all of them have a
.sh suffix, you should leave that off when using, eg.,
On Debian jessie try:
It is in the
Will list all services with a status code, being stopped or off (-), started or on (+), or unknown (?), which means no status code section in their init.d script. Not just running services.
As said with systemd would be
systemctl --full --type service --all
From man page:
--fullDo not ellipsize unit names, process tree entries, journal output, or truncate unit descriptions in the output of status, list-units, list-jobs, and list-timers.
--allWhen listing units with list-units, also show inactive units and units which are following other units. When showing unit/job/manager properties, show all properties regardless whether they are set or not.
Also useful, from ArchWiki:
systemctl # List running units systemctl list-units # Idem systemctl --failed # List failed units
/etc/init.d contains scripts used by the System V init tools (SysVinit).
ls -F /etc/init.d/ | grep '*$'