Go back to LX0-101 - CompTIA Linux+ [Powered by LPI] Exam 1

Question :-

A system is running out of swap space. To initialise 5GB of additional swap space, which combination of commands should be used?
dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; mkswap/tmp/swapfile; mount/tmp/swapfile
dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; mkswap /tmp/swapfile; swapon /tmp/swapfile
mkswap /tmp/swapfile 512000; swapon /tmp/swapfile
dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; swapon /tmp/swapfile
touch -5G /tmp/swapfile; swapon /tmp/swapfile

Want to practice for LX0-101 - CompTIA Linux+ [Powered by LPI] Exam 1 ? Click here.