201-450 Exam QuestionsBrowse all questions from this exam

201-450 Exam - Question 17


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?

Show Answer
Correct Answer: C

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.

Discussion

2 comments
Sign in to comment
milan92stankovicOption: C
Jan 18, 2021

C - 100%

chiaseedOption: C
Sep 23, 2023

It's C. https://lpic2book.github.io/src/lpic2.203.1/?h=swapon#swap