Due to extreme system use, a Linux system requires some additional swap space. To initialize 5 GB of additional swap space, which combination of commands should be used?
Due to extreme system use, a Linux system requires some additional swap space. To initialize 5 GB of additional swap space, which combination of commands should be used?
To initialize additional swap space in Linux, you need to create a swap file, set it up as a swap area, and then enable it. The command sequence 'dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000' creates a swap file of 5 GB. 'mkswap /tmp/swapfile' sets up the swap area on the file, and 'swapon /tmp/swapfile' enables the swap file for use. Option C includes all these necessary steps and is the correct answer.
C - 100%
It's C. https://lpic2book.github.io/src/lpic2.203.1/?h=swapon#swap