How Do I Clean Storage in Linux?

How Do I Clean Storage in Linux?
Contents

How do I free up disk space on Linux?

Freeing disk space on your Linux server

  1. Get to the root of your machine by running cd /
  2. Run sudo du -h –max-depth=1.
  3. Note which directories are using a lot of disk space.
  4. cd into one of the big directories.
  5. Run ls -l to see which files are using a lot of space. Delete any you don’t need.
  6. Repeat steps 2 to 5.

How do I clean up my Linux system?

But today, I will tell you of just 10 ways to keep your system clean and free of unnecessary cache.

  1. Uninstall Unnecessary Applications. …
  2. Remove Unnecessary Packages and Dependencies. …
  3. Clean Thumbnail Cache. …
  4. Remove Old Kernels. …
  5. Remove Useless Files and Folders. …
  6. Clean Apt Cache. …
  7. Synaptic Package Manager.

13 нояб. 2017 г.

Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.