Latest web development tutorials

Linux mkswap command

Linux command Daquan Linux command Daquan

Linux mkswap command to set the swap (swap area).

mkswap disk partition or files can be set to Linux swap.

grammar

mkswap [-cf][-v0][-v1][设备名称或文件][交换区大小]

Parameters:

  • -c Before establishing an exchange area, first check whether there are bad blocks.
  • When -f establishing an exchange zone on SPARC computer, you want to add this parameter.
  • -v0 establish the old exchange zone, this is the default value.
  • -v1 establish new swap.
  • Size [swap size] designated exchange area, in units of 1024 bytes.

Linux command Daquan Linux command Daquan