Linux Comm Mkswap
# Linux mkswap Command
[ Linux Command Manual](#)
The Linux mkswap command is used to set up a swap area.
mkswap can set up a disk partition or file as a Linux swap area.
### Syntax
mkswap
**Parameters**:
* -c Check for bad blocks before creating the swap area.
* -f This parameter is required when creating a swap area on a SPARC computer.
* -v0 Create an old-style swap area, which is the default.
* -v1 Create a new-style swap area.
* Specifies the size of the swap area in units of 1024 bytes.
[ Linux Command Manual](#)
YouTip