Which command can yield a report that is easier to read in terms of memory usage?

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 yields a report that is easier to read in terms of memory usage is the one using the option '-h'. This option stands for "human-readable" and reformats the output to use appropriate units (e.g., KB, MB, GB), making it much simpler for a user to understand the amount of memory being displayed.

When you run the command with the '-h' option, it adjusts the output so that large numbers are shown in a more digestible format rather than in raw bytes, which can be cumbersome to interpret. For example, instead of seeing memory values like 2097152 (for 2 GB), it would display 2G, allowing a quick and clear understanding of the system’s memory usage at a glance.

In contrast, the other options provide numerical outputs in different formats that are less intuitive. For instance, '-m' shows memory in megabytes, '-g' in gigabytes, and '-b' in bytes, none of which provide the same level of clarity without needing to perform conversions in your head. The human-readable format facilitates quick assessments of memory status, making it particularly useful for users who may not be deeply familiar with computing memory metrics.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy