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.
  1. Links
  2. Adding swap file


Links



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