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)- A85% (22)
- B8% (2)
- C4% (1)
- D4% (1)
Community Discussion
No community discussion yet for this question.