Which command can you use for viewing memory and determining if swap is a file or a partition?

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

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command that can be used for viewing memory and determining if swap is a file or a partition is swapon. This command provides detailed information about the swap space currently in use on the system. When used with the -s option, it displays a summary of swap space, including whether it is a swap file or a swap partition.

In many Linux systems, swap can exist in both forms, and this command helps clarify the type by showing the filename or the device associated with the swap space. Overall, swapon is essential for monitoring and managing swap memory effectively, making it the appropriate choice for this task.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy