Hello dear readers! The swap file is your computer’s virtual RAM. We need to increase the speed of the computer, we increase the physical RAM with virtual RAM. First of all, this method of storing data allows you to significantly speed up your computer.
Therefore, if installing Linux you did not create a paging file, you can create it after installing the operating system.
If you forgot what swap file you have, you can view the current size of the swap partition with the command:
Open the terminal (Ctrl + Alt + T), enter the command: swapon –show
If there is no swap file, then nothing will be shown
If there is a paging file, it will show: physical memory -1 paging file -2
Or you can open the system monitor and see the swap there.
We press MENU – Administration – system monitor
To create a 10G swap file (change the value (10G) as you wish) run the command:
sudo fallocate -l 10G /swapfile
Then run the commands in sequence:
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
Open System Monitor to make sure the system sees the paging file::
Alternatively, you can do it with the command: swapon –show
You can disable and delete the paging file with the command:
sudo swapoff -a
That’s all ! Everything is simple and affordable.
All happiness, success, health!
Likes, links, tweets and comments are welcome.
Did you like the post? swap file. Help others to learn about this article by clicking on the social media button
Read more:Watermark on the image.