mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 04:26:41 +01:00
update ripgrep installation, add swap file creation script
This commit is contained in:
14
swap-create.sh
Normal file
14
swap-create.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
# create swap file
|
||||
dd if=/dev/zero of=./swapfile bs=1GB count=40
|
||||
|
||||
# add permisions
|
||||
chmod 600 ./swapfile
|
||||
|
||||
# format the swapfile
|
||||
mkswap ./swapfile
|
||||
|
||||
# enable swap on swapfile
|
||||
swapon ./swapfile
|
||||
|
||||
# check that it is enabled
|
||||
swapon --show
|
||||
Reference in New Issue
Block a user