nerdexam
ExamsXK0-004Questions#25
CompTIA

XK0-004 · Question #25

XK0-004 Question #25: Real Exam Question with Answer & Explanation

The correct answer is B: mkswap /swapfile; swapon -a. mkswap : - set up a Linux swap area free: - Display amount of free and used memory in the system fallocalte: - preallocate or deallocate space to a file echo: -display a line of a text

Question

A junior administrator of a physical server receives log messages indicating the out-of-memory killer has been active. All memory slots are in use on the motherboard, but additional disk space is available. Space has been allocated for a swap file. Which of the following should the administrator use to reduce the output of memory messages?

Options

  • Afree : swapoff / swapfile ; swapon -a
  • Bmkswap /swapfile; swapon -a
  • Cfallocate -l 2G /swapfile && swapon -a
  • Decho "1" > /proc/meninfo ; swapon / swapfile

Explanation

mkswap : - set up a Linux swap area free: - Display amount of free and used memory in the system fallocalte: - preallocate or deallocate space to a file echo: -display a line of a text

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice