nerdexam
LPI

201-400 · Question #42

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 A. dd if=/dev/zero of=/tmp/swapfile bs=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/swapfile bs=1024 count=5120000;
  • Bdd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000;
  • Cdd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000;
  • Dtouch -5G /tmp/swapfile;
  • Emkswap /tmp/swapfile 512000;

How the community answered

(26 responses)
  • A
    85% (22)
  • B
    8% (2)
  • C
    4% (1)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 201-400 Practice