What command shows active swap partitions on the system?

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 shows active swap partitions on the system is indeed "swapon -s". This command displays the current swap space being used by the kernel, along with pertinent details such as the size, used space, and priority of each swap area. It is a dedicated tool specifically designed to manage and provide information about swap configurations, which is essential for performance tuning and monitoring memory usage.

When the system is running, it's important to understand how much swap space is available and how much of it is currently in use, especially in environments where memory is constrained or when running memory-intensive applications. The output from "swapon -s" provides a snapshot of the system's swap utilization, making it a valuable command for system administrators.

The other commands do not focus on swap space. "blkid" is used to display block device attributes, which can include file systems but does not specifically target swap. "systemctl" is mainly utilized for system and service management; it manages systemd services and units rather than memory or swap information. "fdisk" is a partition table manipulation tool that is primarily focused on disk partitions, without providing information on how those partitions are utilized for swap. Thus, "swapon -s" is the most relevant command for

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy