How to Create a Swap File in Linux

Описание к видео How to Create a Swap File in Linux

In this video we go over how to create and manage swap files on Linux.

Support the channel:
BTC - 3NzWDDH3n5PsBKqWJyAb7rvsGvJKxcAPFv

Follow me:
SecureRandom on YouTube -
   / @securerandom5420  

SecureRandom on LBRY / Odysee -
https://odysee.com/@SecureRandom:1

---------------------------------------------------------------------------------------------
Get information on your swap file:
swapon --show

Create the swap file:
sudo dd if=/dev/zero of=/swapfile bs=1M count=1024
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

/etc/fstab setup:
/swapfile none swap sw 0 0

Change swap file priority:
/swapfile none swap sw,pri=10 0 0
sudo swapon -p 10 /swapfile

Комментарии

Информация по комментариям в разработке