Hello dear readers! Paging file.
If you did not create a swap file during Linux installation, you can create one 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? Help others to learn about this article by clicking on the social media button
Read more:Watermark on the image.