nerdexam
LPI

201-450 · 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.

Capacity Planning

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

(34 responses)
  • A
    85% (29)
  • C
    3% (1)
  • D
    9% (3)
  • E
    3% (1)

Topics

#swap space#dd command#mkswap#swapon

Community Discussion

No community discussion yet for this question.

Full 201-450 Practice