當前位置:生活全書館 >

IT科技

> swapoff命令詳解 linux

swapoff命令詳解 linux

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

linux swapoff命令詳解

標籤: swapoff 命令 linux
  • 文章版權屬於文章作者所有,轉載請註明 https://shqsg.com/zh-hant/dianzi/zz3y19.html