Linux list services

In this tutorial, How do I  list all services running in Linux distribution? List running service on Ubuntu Or Systemd service management. Linux the essential for DevOps Roles.

Systemd service management

Listing services

Listing running services.

[huupv@huupv devopsroles]$ systemctl

The screen output terminal

Linux list services

Listing the “failed” services

[huupv@huupv devopsroles]$ systemctl --failed

The screen output terminal

Linux list services 02

Managing targets

To find the default target for your system.

[huupv@huupv devopsroles]$ systemctl get-default

Setting the default target for your system

$ sudo systemctl set-default <target-name>

Managing autostart of services

Showing a service is enabled on system boot.

$ sudo systemctl is-enabled [service-name]

To show a service is currently active (running).

$ sudo systemctl is-active [service-name]

Enabling a service on system boot.

$ sudo systemctl enable [service-name]

Disabling a service on system boot.

$ sudo systemctl disable [service-name]

Managing services at runtime

Starting a service

$ systemctl start [service-name]

Stopping a service

$ systemctl stop [service-name]

Restarting a service

$ sudo systemctl restart [service-name]

To request service to reload its configuration.

$ sudo systemctl reload [service-name]

Showing the current status of a service

$ sudo systemctl status [service-name]

To restart your Systemd.

$ sudo systemctl daemon-reload

List running service on Ubuntu distribution

To get the list of the services on your system.

$ service --status-all

Conclusion

Thought the article, you can use Linux list services as above. I hope will this your helpful.

About HuuPV

My name is Huu. I love technology and especially Devops Skill such as Docker, vagrant, git so forth. I likes open-sources. so I created DevopsRoles.com site to share the knowledge that I have learned. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

Leave a Reply

Your email address will not be published. Required fields are marked *

Comment moderation is enabled. Your comment may take some time to appear.

This site uses Akismet to reduce spam. Learn how your comment data is processed.