Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the swapoff command of linux to shut down the system exchange

Shulou Source: shulou.com Published: 2022-06-02 19:45:39 10月04日 Update

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!

Tags: Systems commands information content parameters references values examples actually in fact commonly used files more friends formats versions see symbols articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Shulou Technology OPPO Reno Huawei vpn