Hands On Programming

Main Navigation

  • Blog
  • Service
  • Malicious
  • About

Changing the swap memory

Posted on March 21, 2024 by Andrzej Dubaj in Linux 

Changing swap memory under Linux:

dd if=/dev/zero of=/swap2 bs=1024K count=2048 
sudo dd if=/dev/zero of=/swap2 bs=1024K count=2048 
mkswap /swap2 
chmod 0600 /swap2 
swapon /swap2 

My site is free of ads and trackers. Was this post helpful to you? Why not BuyMeACoffee


Reference:

  1. Swap Arch Wiki
  2. The Use of Swap Space in Modern Linux Systems
  3. Swap Memory: What It Is, How It Works, and How to Manage It
  • Hands On Programming
  • dubaj[.]andrzej[@]gmail.com
  • a-dubaj
  • AndrzejDubaj

Copyright © 2016 - 2025 Andrzej Dubaj. All Rights Reserved. This is a personal blog, views are my own.