SWAPON(8) | Linux Programmer's Manual | SWAPON(8) |
swapon, swapoff - 使用/關閉用於分頁和交換的檔案和裝置
/sbin/swapon [-h -V]
/sbin/swapon -a [-v]
/sbin/swapon [-v] [-p priority] specialfile
...
/sbin/swapon [-s]
/sbin/swapoff [-h -V]
/sbin/swapoff -a
/sbin/swapoff specialfile ...
Swapon 指出 用於 分頁和交換 的 裝置. 一般 在 系統 多使用者執行級 的 初始化檔案 /etc/rc 中 呼叫 swapon , 使 所有的 交換裝置 生效, 因此 分頁和交換 活動 可以 在 多個 裝置和檔案 之中 進行.
常用的形式有:
Swapoff 禁止 在 指定的 裝置和檔案 上 做 交換, 如果 指定了 -a 選項, /etc/fstab 中 所有的 交換裝置 皆被 關閉.
別在 包含 空洞(hole) 的 檔案 上 使用 swapon .
swapon(2), swapoff(2), fstab(5), init(8), mkswap(8), rc(8), mount(8)
/dev/hd?? 標準分頁裝置
/dev/sd?? 標準 (SCSI) 分頁裝置
/etc/fstab ascii 格式的
檔案系統 描述表
swapon 命令 源於 4.0BSD.
徐明 <xuming@iname.com>
2001/11/18
http://cmpp.linuxforum.net
本頁面中文版由中文
man 手冊頁計劃提供。
中文 man
手冊頁計劃:https://github.com/man-pages-zh/manpages-zh
25 September 1995 | Linux 1.x |