mkswap
Set up a Linux swap area on a device or in a file. Note:
path/to/filecan either point to a regular file or a swap partition. More information: https://manned.org/mkswap.
- Set up a given swap area:
sudo mkswap
- Check a partition for bad blocks before creating the swap area:
sudo mkswap
- Specify a label for the partition (to allow
swaponto use the label):
sudo mkswap
- Use the specified UUID:
sudo mkswap
- Set up a swap file (for btrfs, see
tldr btrfs filesysteminstead):
sudo mkswap
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
