Exam LFCS All QuestionsBrowse all questions from this exam
Question 36

SIMULATION -

Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)

    Correct Answer:

    The command to disable swapping on a device is 'swapoff'. This command deactivates the swap space on the specified device, preventing the operating system from using it as virtual memory. Root privileges are required to execute this command.

Discussion
Buruguduystunstugudunstuy

The command that will disable swapping on a device is 'swapoff'. To disable swapping on a specific device, you can use the following command: sudo swapoff device_name For example, to disable swapping on the device '/dev/sda5', you can use the following command: sudo swapoff /dev/sda5 This command will disable swapping on the specified device, which means that the operating system will not use the device as swap space. Note: 'swapoff' requires root privileges. You will need to use 'sudo' or login as the root user to run the command.