Skip to content

Instantly share code, notes, and snippets.

View luizs81's full-sized avatar
🏠
Working from home

Luiz Gustavo M. Sampaio luizs81

🏠
Working from home
View GitHub Profile
@luizs81
luizs81 / increase_swap.sh
Last active July 5, 2016 14:53 — forked from shovon/increase_swap.sh
How to create/increase swap file in Ubuntu
#!/bin/sh
# size of swapfile in megabytes
swapsize=8000
# does the swap file already exist?
grep -q "swapfile" /etc/fstab
# if not then create it
if [ $? -ne 0 ]; then