May 22

quick swap creation from the file

dd if=/dev/zero of=/swapfile bs=1014 count=4194304; chown root:root /swapfile; chmod 0600 /swapfile; mkswap /swapfile; swapon /swapfile;
echo 'swapon /swapfile' >> /etc/rc.local; chmod +x /etc/rc.d/rc.local; ls -alh /etc/rc.d/rc.local; tail -n 3 /etc/rc.d/rc.local; free -m


Copyright 2021. All rights reserved.

Posted 22 May 2018 by admin in category "simple memo

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.