Fix Error Linux

Adding And Removing Swap Files Is Easy In Linux



In this quick tutorial, I am going to create a swap file on my Linux desktop. I’m also going to show you how to remove a swap file. Below are the commands that I used in this video:
 
ADDING SWAP FILE
► sudo dd if=/dev/zero of=/swapfile bs=1M count=1024
► sudo chmod 600 /swapfile
► sudo mkswap /swapfile
► sudo swapon /swapfile
► swapon –show
Edit /etc/fstab and add:
► /swapfile none swap defaults 0 0

REMOVING SWAP FILE
► sudo swapoff -v /swapfile
► sudo rm /swapfile
Edit /etc/fstab and remove the entry for the swapfile.

WANT TO SUPPORT THE CHANNEL?
? Patreon:
? Paypal:
?️ Amazon:
? Teespring:

SOCIAL PLATFORMS:
?️ Mastodon:
? IRC: irc://freenode #distrotube
? Reddit:
?️ LBRY:

DT ON THE WEB:
?️ Website:
?️ Gopherhole: gopher://distro.tube
? GitLab:
? Audio Podcasts:

FREE AND OPEN SOURCE SOFTWARE THAT I USE:
? Brave Browser –
?️ Open Broadcaster Software:
? Kdenlive:
? GIMP:
? Audacity:
? VirtualBox:
?️ Doom Emacs:

Your support is very much appreciated. Thanks, guys! .

Concluzion: Adding And Removing Swap Files Is Easy In Linux – swap partition,linux tutorial,swap space,swap partition in linux,create swap file in linux,arch linux,delete swap file in linux,linux swap file size,swap in linux,linux swap space,linux swap tutorial,swap memory,linux tutorial for beginners,creating swap file,deleting swap file,swap on linux,linux swap,linux,gnu linux,arch linux swap

source

 

To see the full content, share this page by clicking one of the buttons below

Related Articles

Leave a Reply