Check the usage of Memory (Ram)

// By megabyte
free -m

// By gigabyte
free -h

Check the usage of Hard drive

// By megabyte
df -Tm

// By gigabyte
df -Th

Install Swap File

// Change the parameter {{X}} to the number of Gb that You want to allocate for the Swap

sudo fallocate -l {{X}}G /swapfile

sudo chmod 600 /swapfile

sudo mkswap /swapfile

sudo swapon /swapfile

Linux – Common Commands

Category: Uncategorized
0
131 views

Join the discussion

Your email address will not be published. Required fields are marked *