What is the command to view currently running services on a System V init system?

Prepare for the LPIC-2 Certification Test with our study tools, including flashcards and multiple choice questions with hints and explanations. Get ready to pass your exam!

The command to view currently running services on a System V init system is "service --status-all." This command is designed specifically for systems using the System V init process, which manages services using a set of scripts located in specific directories.

When you run "service --status-all," it provides a comprehensive list of all services on the system, along with their current status, indicating whether each service is running, stopped, or otherwise. This is particularly useful in environments that do not use newer init systems like systemd.

In contrast, "systemctl" is used with the systemd init system, allowing you to manage services in a more modern way, but it is not applicable to System V init systems. The "chkconfig --list" command relates to managing services that are started at boot rather than the current runtime status. The command "status services" is not a recognized command in Linux for viewing service status.

Hence, "service --status-all" is specifically intended for use with System V init systems, making it the correct choice for querying the current state of running services in that context.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy