Adding And Removing Swap Files Is Easy In Linux
DistroTube
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: https://www.patreon.com/distrotube 💳 Paypal: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=derek%40distrotube%2ecom&lc=US&item_name=DistroTube&no_note=0¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest 🛍️ Amazon: https://amzn.to/2RotFFi 👕 Teespring: https://teespring.com/stores/distrotube
SOCIAL PLATFORMS: 🗨️ Mastodon: https://mastodon.technology/@distrotube 💬 IRC: irc://freenode #distrotube 👫 Reddit: https://www.reddit.com/r/DistroTube/ 📽️ LBRY: https://lbry.tv/$/invite/@DistroTube:2
DT ON THE WEB:
🕸️ Website: http://distrotube.com/
🐿️ Gopherhole: gopher://distro.tube
📁 GitLab: https://gitlab.com/dwt1
🔊 Audio Podcasts: https://www.buzzsprout.com/1263722
FREE AND OPEN SOURCE SOFTWARE THAT I USE: 🌐 Brave Browser - https://brave.com/dis872 📽️ Open Broadcaster Software: https://obsproject.com/ 🎬 Kdenlive: https://kdenlive.org 🎨 GIMP: https://www.gimp.org/ 🎵 Audacity: https://www.audacityteam.org/ 💻 VirtualBox: https://www.virtualbox.org/ 🗒️ Doom Emacs: https://github.com/hlissner/doom-emacs
Your support is very much appreciated. Thanks, guys! ... https://www.youtube.com/watch?v=tGrzyFdUPFk
124873913 Bytes