We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7726fcd commit 424ef2bCopy full SHA for 424ef2b
Cheat Sheets/DevOps Linux/swap.md
@@ -5,10 +5,16 @@ Commands to manage swap files
5
swapon <file> # Mount unmount swap
6
swapoff <file>
7
8
- mkswap /dev/xxx # Create swap file / device
9
- mkswap --size 8GiB <file>
+ mkswap /dev/xxx # Create swap partition
+ mkswap -F --size 8GiB <file> # Create swap file
10
11
- free | grep Swap # Show active/used swap space
+Show active/used swap space
12
+
13
+ free | grep Swap
14
+ cat /proc/meminfo
15
16
+For detailed per process swap usage analysis start `top` press `f` and enable
17
+the `SWAP` column and press `s` to mark it as sort field.
18
19
## Permanent mount in /etc/fstab
20
0 commit comments