![]() |
Linux Operating System has some different features that are unique and not present in any other major operating system like Windows. The Linux Memory Distribution is one of them. The Memory Space in Linux is designed in such a way that the efficiency of the Memory Management could be the best. The Linux Swap Memory is the key driver in this feature. From the Swap Memory or Swap Space in Linux, the Linux Swap File concept is developed. By default in Linux, the Swap File is not present. As a user, we have to Create a Swap File in Linux to utilize the Memory Management Feature at the full course. In this article, we will discuss the required steps to Add Swap Files on Linux OS without creating any errors in no time.
Quick Highlights on Swap File on Linux:
Steps to Create Swap File on LinuxStep 1: Open the Linux Terminal & execute the following command. It will make the Memory Space for a new Swap File.
Step 2: Now, enter the following Linux Command. It will provide permission for the Swap File to be accessed by the root user only.
Step 3: Now as we Create Swap Partition, it is time to mark it as the Swap Space in the Linux Memory. For that purpose, the following command will be executed.
Step 4: It is the last command yet necessary to Enable Swap File on Linux. Execute it on the Linux Command Line Tool.
Step 5: Now, execute the following command. It will help to verify the Created Swap File on Memory.
These are the central commands you have to use to Start Swap File on Ubuntu or Linux Distributions. You have to execute each command mentioned here to Enable Swap Space Operation in Linux. Otherwise, the Swap File in Linux will be created, but the device can’t use it to store RAM Items as it is disabled. Also Read
Frequently Asked Questions to Create Swap Files on LinuxHow to Create Swap Files on Linux?
What is the main command behind creating the Swap Linux File?
How to remove the Swap File on Linux?
|
Reffered: https://www.geeksforgeeks.org
TechTips |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 16 |