English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux mkswap command

Linux Command大全

The Linux mkswap command is used to set swap areas (swap area).

mkswap can set disk partitions or files as Linux swap areas.

Syntax

mkswap [-cf][-v0][-v1][Device Name or File][Swap Area Size]

Parameter:

  • -c Check for any damaged blocks before creating a swap area.
  • -f Add this parameter when creating a swap area on a SPARC computer.
  • -v0 Create an old-style swap area, this is the default value.
  • -v1 Create a new-style swap area.
  • [Swap Area Size] Specify the size of the swap area, unit of1024Byte.

Linux Command大全