swapon
Enable devices and files for swapping. Note:
path/to/filecan either point to a regular file or a swap partition. More information: https://manned.org/swapon.8.
- Show swap information:
swapon
- Enable a given swap area:
sudo swapon
- Enable all swap areas specified in
/etc/fstabexcept those with thenoautooption:
sudo swapon
- Enable a swap partition by its label:
sudo swapon -L
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
