linux swapoff命令详解
- IT科技
- 关注:3.34W次
1、swapoff命令简介:
Linux系统下swapoff命令用于关闭系统交换区(swap area),swapoff实际上为swapon的符号连接,可用来关闭系统的交换区。
2、语法:
swapoff [设备]
3、参数:
-a将/etc/fstab文件中所有设置为swap的设备关闭 ;
-h帮助信息;
-V版本信息 。
实例:
显示分区信息,输入命令:
# sfdisk -l //显示分区信息
Disk /dev/sda: 1305 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024
- 文章版权属于文章作者所有,转载请注明 https://dongkepu.com/itkeji/7w3jyd.html