nerdexam
LPI

010-150 · Question #25

Which of the following commands are used to view memory usage? (Choose TWO correct answers.)

The correct answer is B. top D. free. The 'free' and 'top' commands are standard Linux utilities that display system memory usage information.

The Power of the Command Line

Question

Which of the following commands are used to view memory usage? (Choose TWO correct answers.)

Options

  • Amemory
  • Btop
  • Cps
  • Dfree
  • Enice

How the community answered

(18 responses)
  • A
    6% (1)
  • B
    83% (15)
  • C
    11% (2)

Why each option

The 'free' and 'top' commands are standard Linux utilities that display system memory usage information.

Amemory

There is no standard Linux command named 'memory'; running it results in a command-not-found error on a default Linux system.

BtopCorrect

The top command provides a real-time, dynamic view of running processes including each process's memory and CPU consumption, as well as a summary of total and available memory at the top of its display. The free command is dedicated specifically to displaying total, used, free, shared, and available physical and swap memory in a concise tabular format. Both are standard tools available on virtually all Linux distributions for monitoring memory.

Cps

The ps command reports a snapshot of current processes and their states but is not primarily used for viewing overall system memory usage statistics.

DfreeCorrect
Enice

The nice command is used to set or adjust the scheduling priority (niceness value) of a process and has no function related to displaying memory usage.

Concept tested: Linux commands for monitoring system memory usage

Source: https://man7.org/linux/man-pages/man1/free.1.html

Topics

#memory usage#top#free#system monitoring

Community Discussion

No community discussion yet for this question.

Full 010-150 Practice