swapoff

swapoff 功能说明:关闭交换分区

如果需要回收磁盘资源,则可以使用swapoff关闭交换分区释放磁盘空间。
 
参数选项:
-a    关闭所有交换分区

[root@cs6 ~]# swapoff -a
[root@cs6 ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          1989        174       1815          0          6         41
-/+ buffers/cache:        127       1862
Swap:            0          0          0 



原文地址:https://www.cnblogs.com/l10n/p/14210032.html