nerdexam
CompTIA

LX0-101 · Question #251

A system is running out of swap space. To initialise 5GB of additional swap space, which combination of commands should be used?

The correct answer is E. dd if=/dev/zero of=/tmp/swapfilebs=1024 count=5120000. See the full explanation below for the reasoning.

Question

A system is running out of swap space. To initialise 5GB of additional swap space, which combination of commands should be used?

Options

  • Add if=/dev/zero of=/tmp/swapfilebs=1024 count=5120000;
  • Bdd if=/dev/zero of=/tmp/swapfilebs=1024 count=5120000;
  • Ctouch -5G /tmp/swapfile;
  • Dmkswap /tmp/swapfile 512000;
  • Edd if=/dev/zero of=/tmp/swapfilebs=1024 count=5120000;

How the community answered

(15 responses)
  • A
    7% (1)
  • C
    13% (2)
  • E
    80% (12)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice