What command lists the state of all service unit files?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Prepare for the Red Hat Certified Architect Exam with our comprehensive quiz. Master your skills with multiple choice questions and detailed explanations. Gear up to excel!

The command that lists the state of all service unit files is the one that utilizes systemctl with the appropriate options for unit files focusing on services. The purpose of this command is to display information about each unit file's state, which can be either enabled, disabled, static, or masked, among others. This provides system administrators with a clear overview of what services are available, their configurations, and their current statuses.

By using the flag "--type=service," it specifically filters the output to show only service unit files, allowing for a more concise view that is particularly useful when managing system services.

The other options do not pertain to service unit files: mounting filesystems, checking swap usage, or partitioning disks do not relate to managing or listing service states in the system service management context.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy