How do I check hard drive space on Ubuntu?

How do I find out the size of my hard drive in Linux?

Command to Check Hard Disk Size in Linux Ubuntu

  1. df command – Shows the amount of disk space used and available on Linux file systems. …
  2. du command – ‘du’ reports the amount of disk space used by the set of specified files and for each subdirectory (of directory arguments).

How do I check my hard drive full space?

This method provides details of the hard drive(s) of the notebook PC using Disk Management in the Computer Management tool.

  1. Click Start and then Run.
  2. Type compmgmt. msc and click Ok.
  3. Under Storage, click Disk Management. The drive capacity is listed under capacity.

How do I manage disk space in Ubuntu?

Free Up Hard disk space in Ubuntu

  1. Delete Cached Package Files. Every time you install some apps or even system updates, the package manager downloads and then caches them before installing them, just in case they need to be installed again. …
  2. Delete Old Linux Kernels. …
  3. Use Stacer – GUI based System Optimizer.

How do I clear disk space in 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 free up hard drive space?

7 Hacks to Free Up Space on Your Hard Drive

  1. Uninstall unnecessary apps and programs. Just because you’re not actively using an outdated app doesn’t mean it’s still not hanging around. …
  2. Clean your desktop. …
  3. Get rid of monster files. …
  4. Use the Disk Cleanup Tool. …
  5. Discard temporary files. …
  6. Deal with downloads. …
  7. Save to the cloud.

How much space is left on my computer?

Click “System,” and then, in the pane on the left, click “Storage.” 3. You should see details about your primary hard drive, called “C:.” Here, Windows will show you the remaining storage space, as well as how your drive is currently being used.

How do I free up space on my command prompt?

To use it open the command prompt and type “Cleanmgr”. A small window will appear where you have to select the drive to clean. Click on OK to ask your system to analyze the drive and find out removable junks. Check which files you want to delete and press the OK button to execute.

How do I clean up my Ubuntu system?

Steps to Clean Up Your Ubuntu System.

  1. Remove all the Unwanted Applications, Files and Folders. Using your default Ubuntu Software manager, remove the unwanted applications that you don’t use.
  2. Remove unwanted Packages and Dependencies. …
  3. Need to Clean the Thumbnail Cache. …
  4. Regularly clean the APT cache.

What does sudo apt-get autoclean do?

The apt-get autoclean option, like apt-get clean, clears the local repository of retrieved package files, but it only removes files that can no longer be downloaded and are virtually useless. It helps to keep your cache from growing too large.

How do I clean up Linux?

All three commands contribute to free up disk space.

  1. sudo apt-get autoclean. This terminal command deletes all . …
  2. sudo apt-get clean. This terminal command is used to free up the disk space by cleaning up downloaded . …
  3. sudo apt-get autoremove.
Like this post? Please share to your friends:
OS Today