How to create or remove SWAP partitions in Linux

As you all know, when the Linux system is consuming physical memory, the inactive pages are moved from physical memory to the SWAP space, and the SWAP space can exist as a dedicated SWAP...