LPI
117-201 · 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
(23 responses)- A83% (19)
- B9% (2)
- D4% (1)
- E4% (1)
Community Discussion
No community discussion yet for this question.