Editing Swapon
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
* Man page: http://man7.org/linux/man-pages/man8/swapon.8.html | * Man page: http://man7.org/linux/man-pages/man8/swapon.8.html | ||
− | |||
* <code>[[swapon -s]]</code> or <code>[[swapon --show]]</code> | * <code>[[swapon -s]]</code> or <code>[[swapon --show]]</code> | ||
− | |||
− | |||
− | |||
swapon --show | swapon --show | ||
Line 17: | Line 13: | ||
(No output if not swap active) | (No output if not swap active) | ||
− | swapon -s | + | swapon -s |
Filename Type Size Used Priority | Filename Type Size Used Priority | ||
− | [[/swap.img]] | + | [[/swap.img]] file 2023420 104312 -2 |
* <code>cat [[/proc/swaps]]</code> | * <code>cat [[/proc/swaps]]</code> | ||
− | |||
Oct 12 12:55:03 SERVER swapon[449]: [[swapon]]: /[[swap.img]]: swapon failed: [[Read-only file system]] | Oct 12 12:55:03 SERVER swapon[449]: [[swapon]]: /[[swap.img]]: swapon failed: [[Read-only file system]] | ||
Line 35: | Line 30: | ||
* <code>[[systemctl --type swap]]</code> | * <code>[[systemctl --type swap]]</code> | ||
* <code>[[mkswap]]</code> | * <code>[[mkswap]]</code> | ||
− | |||
== See also == | == See also == |
Advertising: