hey - I think there is a small mistake in line where swapfile is added to /etc/fstab
echo "/swapfile swap swap defaults 0 0" | sudo tee /etc/fstab
This will over-write the existing one. please check
hey - I think there is a small mistake in line where swapfile is added to /etc/fstab
echo "/swapfile swap swap defaults 0 0" | sudo tee /etc/fstab
This will over-write the existing one. please check
Yes, that is a mistake. This is the correct command:
echo "/swapfile swap swap defaults 0 0" | sudo tee -a /etc/fstab
Unfortunately, I can no longer edit the article, so hopefully readers see this comment thread before it's too late!
you could edit it now;)
The correction has been applied to the article.