How to create a swap file in Linux

Overview We’re going to cover a process how to create a swap file in Linux, how to activate it and how to adjust it. You might have heard of linux swap term or maybe of linux swap space when you installed your Linux distro on your PC/server. If you were not sure about creating a linux swap space process and didn’t create one for some reason, you can instead create a Linux swap file instead. Also, there are some advantages to have a swap file instead of swap partition. Swap file is much easier to manage - meaning, you can easily change swap file size anytime, you can activate it and deactivate it anytime and etc. ...

December 19, 2023 · 6 min · 1076 words · MarkoN