Use the swapoff command of linux to shut down the system exchange
This article mainly introduces the use of linux's swapoff command to close the system exchange area, which can be used for reference by friends who need it. Let's take a look at it with me.
Swapoff is actually a symbolic link for swapon and can be used to shut down the switching area of the system.
Syntax format: swapoff [parameters]
Common parameters:
-a turn off all devices set to swap in the / etc/fstab file-h help information-V version information
Reference example
Turn off the swap partition:
[root@linuxcool ~] # swapoff / dev/sda2 above is the details of shutting down the system exchange area using the swapoff command of linux. Have you learned anything after reading it? If you want to know more about it, welcome to the industry information!