Skip to content
Back home
The home of William Rendell
  • Home
  • Family
    • Holidays
    • Pets
    • Vehicles
  • Health and Fitness
  • Technical
    • Mikrotik
    • Computing
    • Renewable Energy
  • Privacy Policy
    • Cookie policy (UK)
  • Music
    • Harmonica
      • Easy
      • Intermediate
  • Contact
  • Search
Back home
  • Search
  • Home
  • Family
    • Holidays
    • Pets
    • Vehicles
  • Health and Fitness
  • Technical
    • Mikrotik
    • Computing
    • Renewable Energy
  • Privacy Policy
    • Cookie policy (UK)
  • Music
    • Harmonica
      • Easy
      • Intermediate
  • Contact
Home » Technical » Computing » Add swap file into linux
Computing Technical

Add swap file into linux

by William Rendell|Published February 11, 2026

fallocate -l 4G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile

If RAM = 4GB
Use swap = 4GB–8GB

If RAM = 8GB
Swap = 2GB–4GB is fine

  • Linux
  • network

You may also like

Published March 19, 2019

Convert AD synced office 365, to cloud only

install “Microsoft Online Services Sign in Assistant for IT Professionals” Open Powershell (Admin) Enter the following commands… Install-Module MSOnline Install-Module AzureAD Import-Module […]

Change Nagios web users password
Published September 7, 2022

Change Nagios web users password

htpasswd -c /etc/nagios/htpasswd.users nagiosuser Then enter new password for nagiosuser

ospp.vbs
Published March 13, 2013

ospp.vbs

Very handy for Office 2013 installs http://technet.microsoft.com/en-us/library/ee624350.aspx

IIS redirects 301
Published March 5, 2010

IIS redirects 301

What you are trying to accomplish here is to have one resource (either a page or an entire site) redirect a visitor […]

Post navigation

  • Previous post install Proxmox guest agent in Debaim
  • Back to post list

© 2026  – All rights reserved

Powered by WP – Designed with the Customizr Theme