Linux Sysadmin Test Prep
Swap
Swap
swap
- Create swapfile or partition with
dd
orfdisk
dd if=/dev/zero of=swapfile bs=1M count=1024
fdisk /dev/sdX
(t 82)
mkswap swapfile
(or /dev/sdX)cat /proc/swaps
(to verify)
vim /etc/fstab
/swapfile swap swap defaults 0 0swapon swapfile
swapon -s
(to verify)
swapoff swapfile
Edit this page on GitHub