Skip to content

Instantly share code, notes, and snippets.

View ravikyada's full-sized avatar
🎯
Focusing

Ravi Kyada ravikyada

🎯
Focusing
View GitHub Profile
@ravikyada
ravikyada / swapper.sh
Created May 9, 2024 08:16
Create Swap File Inside Debian Server
#! /usr/bin/bash
read -p "Give size of swap you wants to create:" usr_input
echo "Your swap memory will be create of size : $usr_input"
sudo fallocate -l $usr_input /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon --show