Linux Misc
by Mark Nielsen
Copyright 2021
Just things I encounter in Linux I don't do often but is very helpful. This will continue to
grow over time.
- Links
- Adding swap file
Links
- https://www.howtogeek.com/455981/how-to-create-a-swap-file-on-linux/
Adding swap file
Check if /swapfile exists in /etc/fstab. If it is not.....
swapoff -a
dd if=/dev/zero of=/swapfile bs=1024 count=8048576
mkswap /swapfile
chmod 600 /swapfile
echo "/swapfile none swap sw 0 0" >> /etc/fstab
swapon -a
swapon -s