In this short post, we will learn to use a command to list all services from Linux operating system. The command we are going to discuss here should work other operating systems like Mac and Unix.
- If the services are inside /etc/init.d/ then we can use the command below:
service --status-all
- If the service is a systemd unit, then they can be listed with the command below:
systemctl list--units
- If you want to see currently active units then the command for all known units will be:
systemctl -a list-units
Conclusion
In this short post, we learn to list the services available in Linux operating system.