Latest web development tutorials

Linux swapon command

Linux command Daquan Linux command Daquan

Linux swapon command to activate the Linux system, swap space, Linux memory management system must be used to create a virtual memory swap area.

grammar

/sbin/swapon -a [-v]
/sbin/swapon [-v] [-p priority] specialfile ...
/sbin/swapon [-s]

Parameter Description:

  • -h please help me
  • -V Display version Message
  • -s Show short message device
  • -a device automatically starts all SWAP
  • -p set the priority, you can choose a number in the middle 0-32767 to him. Or in the / etc / fstab inside with pri = [value] ([value] is the middle of a number from 0 to 32767), then you can easily use swapon -a direct them to start, and priority setting .

swapon is open swap.

In contrast, there will be a closed swap command, swapoff.

Linux command Daquan Linux command Daquan