Command for services in linux machine
How to List Services in Linux Let’s look at a potential scenario. While running your Linux system, you can no longer access localhost. Chances are that the HTTP service was disabled, and causing the problem. To troubleshoot issues like this one and many others, it’s good to know how to list all services in Linux. Fortunately, CentOS and Ubuntu – two of the most popular operating systems in their areas – share systemd. That means that the commands we are going to present are compatible with both systems. First, we have to connect to our server using SSH. If you’re having trouble, check out our PuTTY tutorial . Once inside, we need to be the root user to list service in Linux. su Now we can list all services in Linux. To do it, run the command: sudo systemctl list-unit-files --type service --all When the command is run, we will see all the services that are on the system. However, we will also see that some have a defined status. Let’s learn what all these mean. Enabled ...