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 |