Difference between revisions of "Swap linux"
From Teknologisk videncenter
(Created page with "Using file as temporary swap <source> free ... dd if=/dev/zero of=/swapfile bs=1M count=1000 # Create swapfile on 1GB chmod 0600 /swapfile # Make it secure mkswap /swapfi...") |
(No difference)
|
Revision as of 12:50, 4 April 2024
Using file as temporary swap
free
...
dd if=/dev/zero of=/swapfile bs=1M count=1000 # Create swapfile on 1GB
chmod 0600 /swapfile # Make it secure
mkswap /swapfile # Prepare swapfiile for use
swapon /swapfile # Start usiong it
free
....