Trivia: Adding Linux Swapspace

by Wolfram Saringer  (2011-02-13)
last change: 2011-02-13

dd if=/dev/zero of=/swapfile bs=1M count=2048
mkswap /swapfile
swapon /swapfile

Don't forget to also add the last command (swapon) to the system startup scripts (e.g. in /etc/rc.local).

all articles represent the sole opinion of their respective author. all content comes without any warranty for correctnes, despite due diligence.