Name

mkswap

Synopsis

                  mkswap [option] device [size]

System administration command. Create swap space on device. You may specify its size in blocks; each block is a page of about 4KB.

Option

-c

Check for bad blocks before creating the swap space.

Get Linux in a Nutshell, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.