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

Linux mkswap command

Linux Command Manual

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]

Parameters:

  • -c Check for 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 swap area.
  • [Swap Area Size] Specify the swap area size, unit of1024Byte.

Linux Command Manual