LazyTech

  • Home
  • Blog
  • TV/Cinema
  • Video Tutorials
No Result
View All Result
  • Home
  • Blog
  • TV/Cinema
  • Video Tutorials
No Result
View All Result

JNews Game

No Result
View All Result
Home Video Tutorials Operating Systems

How to enable a SWAP file on Linux

Gearloose by Gearloose
June 25, 2017
in Video Tutorials, Operating Systems, Linux
0
131
VIEWS
Share on FacebookShare on Twitter

From this video you will learn how to create and enable a swap file on your Linux system.

Swap partition was a necessity of any linux installation in the past. Nowadays with increased amount of RAM, swap partition is not used at all by some systems. There is no need of large swap. So, you can create small swap file and if it happened that you need more swap you can easily change the size of your swap file. It is especially useful for small size SSD.

This video is primarily designed to show how to enable a swap file in Arch Linux https://youtu.be/GKdPSGb9f5s

Create a swap file:

sudo fallocate -l 1Gb /swapfile
for F2FS or XFS: sudo dd if=/dev/zero of=/swapfile bs=1M count=512

sudo chmod 600 /swapfile

sudo mkswap /swapfile

sudo swapon /swapfile

add to /etc/fstab the line /swapfile none swap defaults 0 0

sudo nano /etc/fstab

Remove swap file.

swapoff -a
rm -f /swapfile
If you want to remove a swap file completely, remove the relevant entry from /etc/fstab.

Wallpaper can be found in my Google+ Wallpaper collection https://plus.google.com/collection/YlkQNE

################################################

Support on Patreon: https://www.patreon.com/averagelinuxuser

Donate through PayPal: https://www.paypal.me/Kryvokhyzha

################################################

More cool Linux stuff at other social media:

Google+ – Best Linux Stuff: https://plus.google.com/+AverageLinuxUser
Facebook – Top Linux Tips: https://www.facebook.com/AverageLinuxUser
Twitter – Daily Linux News: http://twitter.com/AVGLinuxUser

Website: http://averagelinuxuser.com/

More Info

Recommended Posts

Choosing Your First Linux Distribution
Operating Systems

Choosing Your First Linux Distribution

March 9, 2019
Getting Help With Linux
Operating Systems

Getting Help With Linux

April 27, 2017
Making Backups with Grsync
Operating Systems

Making Backups with Grsync

April 18, 2015
How to Dual boot Windows 10 and Linux (Beginners Guide)
Operating Systems

How to Dual boot Windows 10 and Linux (Beginners Guide)

June 26, 2019
Learn Kali Linux Episode #53: Introduction to SQL Injections
Operating Systems

Learn Kali Linux Episode #53: Introduction to SQL Injections

April 4, 2018
Getting Started with Syncthing (Part 4)
Operating Systems

Getting Started with Syncthing (Part 4)

May 2, 2016
ShareTweetShare
Previous Post

How to Create a Japanese Tea Packaging Design

Next Post

Best Distribution…

Next Post
Best Distribution…

Best Distribution…

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *


  • Trending
  • Comments
  • Latest
Resolve in a Rush Ep17 Using the Aperture Diffraction Plugin

Resolve in a Rush Ep17 Using the Aperture Diffraction Plugin

August 8, 2018
08 - Firebase Remember me - Android Remember me Checkbox

08 - Firebase Remember me - Android Remember me Checkbox

October 19, 2018
Part 3 - BadgerDB

Part 3 - BadgerDB

October 27, 2018
Linux commands for Beginners 20 - Package Management on Fedora and CentOS (dnf and yum)

Linux commands for Beginners 20 - Package Management on Fedora and CentOS (dnf and yum)

September 26, 2019
Web Development In 2021 - A Practical Guide

Web Development In 2021 - A Practical Guide

December 31, 2020
MagicaVoxel to Blender and Vice Versa [Greek] [Eng Subs]

MagicaVoxel to Blender and Vice Versa [Greek] [Eng Subs]

December 23, 2020
blender secrets

blender secrets

October 11, 2020
Demo: Boolean logic with switch and other syntax [28 of 51] | Beginner's Series to JavaScript

Demo: Boolean logic with switch and other syntax [28 of 51] | Beginner's Series to JavaScript

October 5, 2020

Recommended

Using Solidify, Booleans and the Knife tool to model

Using Solidify, Booleans and the Knife tool to model

August 13, 2018
Node.js Promises using the Q library

Node.js Promises using the Q library

May 30, 2017
Blender 2.7 Tutorial #87: Volumetric Lighting in Cycles #b3d

Blender 2.7 Tutorial #87: Volumetric Lighting in Cycles #b3d

May 9, 2018
How to make a game like Tetris in Unity 5 - Part 10 - Scoring

How to make a game like Tetris in Unity 5 - Part 10 - Scoring

December 13, 2015

About Us

Lazytech is about hardware hacking, such as video game consoles, PC and consumer stuff. There are lots of software hacks as well.


Blogs

  • Blog
  • TV/Cinema
  • Video Tutorials

Categories

3D & Animation Audio Production Design & Illustration Game Development General Knowledge Mobile Development Operating Systems Personal Development Photography Productivity Software Development Uncategorized Video Production Web Development
  • Contact Me
  • My Projects
  • Privacy Policy

© 2021 LazyTek.xyz - Created by BadTooth Studio.

No Result
View All Result
  • Home
  • Blog
  • TV/Cinema
  • Video Tutorials

© 2021 LazyTek.xyz - Created by BadTooth Studio.