To view running services in a Linux operating system, you can use the following command:
- Use the systemctl command
plaintextCopy code
systemctl list-units --type=service
- Use the service command
plaintextCopy code
service --status-all
- use the ps command
plaintextCopy code
ps -ef | grep -i "service-name"
Among them, "service-name" is the name of the service to be viewed.