In the event that you wish to disable a swap partition, what command must be used?

Slide 1

Most trusted JOB oriented professional program

DevOps Certified Professional (DCP)

Take your first step into the world of DevOps with this course, which will help you to learn about the methodologies and tools used to develop, deploy, and operate high-quality software.

Slide 2

DevOps to DevSecOps – Learn the evolution

DevSecOps Certified Professional (DSOCP)

Learn to automate security into a fast-paced DevOps environment using various open-source tools and scripts.

Slide 2

Get certified in the new tech skill to rule the industry

Site Reliability Engineering (SRE) Certified Professional

A method of measuring and achieving reliability through engineering and operations work – developed by Google to manage services.

Slide 2

Master in DevOps Engineering (MDE)

Get enrolled for the most advanced and only course in the WORLD which can make you an expert and proficient Architect in DevOps, DevSecOps and Site Reliability Engineering (SRE) principles together.

Slide 2

Gain expertise and certified yourself

Azure DevOps Solutions Expert

Learn about the DevOps services available on Azure and how you can use them to make your workflow more efficient.

Slide 3

AWS Certified DevOps Professional

Learn about the DevOps services offered by AWS and how you can use them to make your workflow more efficient.

What is Swap in Linux?
Swap is a space on a disk that is used when the amount of physical RAM memory is full. When a Linux system runs out of RAM, inactive pages are moved from the RAM to the swap space.

Swap space can take the form of either a dedicated swap partition or a swap file. In most cases, when running Linux on a virtual machine, a swap partition is not present, so the only option is to create a swap file.

Lets deep dive and understand in more depth.

There are two basic types of memory in a typical computer.

  1. Random access memory (RAM)
    The first type, random access memory (RAM), is used to store data and programs while they are being actively used by the computer. Programs and data cannot be used by the computer unless they are stored in RAM. RAM is volatile memory; that is, the data stored in RAM is lost if the computer is turned off. Hard drives are magnetic media used for long-term storage of data and programs. Magnetic media is nonvolatile; the data stored on a disk remains even when power is removed from the computer. The CPU (central processing unit) cannot directly access the programs and data on the hard drive; it must be copied into RAM first, and that is where the CPU can access its programming instructions and the data to be operated on by those instructions. During the boot process, a computer copies specific operating system programs, such as the kernel and init or systemd, and data from the hard drive into RAM, where it is accessed directly by the computer’s processor, the CPU.
  • Swap space
    The second type of memory in modern Linux systems is swap space. The primary function of swap space is to substitute disk space for RAM memory when real RAM fills up and more space is needed.

Useful Commands to Monitor Swap Space Usage in Linux

  • Author
  • Recent Posts

Mentor for DevOps - DevSecOps - SRE - Cloud - Container & Micorservices at Cotocus

Join my following certification courses...
- DevOps Certified Professionals (DCP)
- Site Reliability Engineering Certified Professionals (SRECP)
- Master in DevOps Engineering (MDE)
- DevSecOps Certified Professionals (DSOCP)

My Linkedin - //www.linkedin.com/in/rajeshkumarin
My Email -

What command can be used to check different kinds of filesystems on Linux for errors?

The fsck command checks and interactively repairs inconsistent file systems. You should run this command before mounting any file system. You must be able to read the device file on which the file system resides (for example, the /dev/hd0 device).

What hex code is associated with a Linux swap type partition?

So enter t , specify the partition number, and when it asks for the hex code partition type, type 82, which is the Linux swap partition type, and press Enter. When you are satisfied with the partition you have created, use the w sub-command to write the new partition table to the disk.

Which option when used with the mount command enables loopback mode?

Loopback devices You can use the mount command with the “loop” option to set up a loopback device and mount it somewhere.

Which of the following commands can be used to format a disk partition as ext4?

To format the partition using ext4, run the command mkfs. ext4 /dev/vdb1 .

Toplist

Neuester Beitrag

Stichworte