Quick Answer: What is the command to check space in Linux?

df command – Shows the amount of disk space used and available on Linux file systems. du command – Display the amount of disk space used by the specified files and for each subdirectory. btrfs fi df /device/ – Show disk space usage information for a btrfs based mount point/file system.

How do I check disk space in Unix?

Check disk space on Unix operating system

Unix command to check disk space: df command – Shows the amount of disk space used and available on Unix file systems. du command – Display disk usage statistic for each directory on Unix server.

What is disk space in Linux?

The ‘df‘ command stands for “disk filesystem“, it is used to get a full summary of available and used disk space usage of the file system on Linux system. … Size — gives us the total size of the specific file system. Used — shows how much disk space is used in the particular file system.

How do I check my disk space?

To check the free disk space and disk capacity with System Monitor:

  1. Open the System Monitor application from the Activities overview.
  2. Select the File Systems tab to view the system’s partitions and disk space usage. The information is displayed according to Total, Free, Available and Used.

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 find large files on Linux?

The procedure to find largest files including directories in Linux is as follows:

  1. Open the terminal application.
  2. Login as root user using the sudo -i command.
  3. Type du -a /dir/ | sort -n -r | head -n 20.
  4. du will estimate file space usage.
  5. sort will sort out the output of du command.

How do I see partitions in Linux?

10 Commands to Check Disk Partitions and Disk Space on Linux

  1. fdisk. Fdisk is the most commonly used command to check the partitions on a disk. …
  2. sfdisk. Sfdisk is another utility with a purpose similar to fdisk, but with more features. …
  3. cfdisk. …
  4. parted. …
  5. df. …
  6. pydf. …
  7. lsblk. …
  8. blkid.

How increase space in Linux?

Steps

  1. Shut down the VM from Hypervisor.
  2. Expand the disk capacity from settings with your desired value. …
  3. Start the VM from the hypervisor.
  4. Login to virtual machine console as root.
  5. Execute below command to check the disk space.
  6. Now execute this below command to initialize the expanded space and mount it.

How do I get more disk 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 do I check my C drive space?

View storage usage on Windows 10

  1. Open Settings.
  2. Click on System.
  3. Click on Storage.
  4. Under the “Local Disk C:” section, click the Show more categories option. …
  5. See how the storage is being utilized. …
  6. Select each category to see even more details and actions you can take to free up space on Windows 10.

Why is my local disk C full?

Generally, C drive full is an error message that when the C: drive is running out of space, Windows will prompt this error message on your computer: “Low Disk Space. You are running out of disk space on Local Disk (C:). Click here to see if you can free space o this drive.”

Like this post? Please share to your friends:
OS Today