首页
首页 » 磁盘维护 » swapon

swapon

swapon
功能说明:启动系统交换区(swap area)。
语  法:swapon [-ahsV][-p <优先顺序>][设备]
补充说明:Linux系统的内存管理必须使用交换区来建立虚拟内存。
  -a   将/etc/fstab文件中所有设置为swap的设备,启动为交换区。
  -h   显示帮助。
  -p<优先顺序>   指定交换区的优先顺序。
  -s   显示交换区的使用状况。
  -V   显示版本信息。

swapon

swapon [options] devices

System administration command. Make the listed devices available for swapping and paging.

Options

-a

Consult /etc/fstab for devices marked sw. Use those in place of the devices argument.

-e

Used with -a. Don't complain about missing devices.

-h

Print help message, then exit.

-p priority

Specify a priority for the swap area. Higher priority areas will be used up before lower priority areas are used.

-s

Print swap usage summaries, then exit.

-V

Print version information, then exit.