Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

swap memory in ubuntu

sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
output 
Setting up swapspace version 1, size = 2 GiB (2147479552 bytes)
no label, UUID=fde7d2c8-06ea-400a-9027-fd731d8ab4c8
Copy
Source by linuxize.com #
 
PREVIOUS NEXT
Tagged: #swap #memory #ubuntu
ADD COMMENT
Topic
Name
3+1 =