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:
- Open the System Monitor application from the Activities overview.
- 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
- Get to the root of your machine by running cd /
- Run sudo du -h –max-depth=1.
- Note which directories are using a lot of disk space.
- cd into one of the big directories.
- Run ls -l to see which files are using a lot of space. Delete any you don’t need.
- 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:
- Open the terminal application.
- Login as root user using the sudo -i command.
- Type du -a /dir/ | sort -n -r | head -n 20.
- du will estimate file space usage.
- 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
- fdisk. Fdisk is the most commonly used command to check the partitions on a disk. …
- sfdisk. Sfdisk is another utility with a purpose similar to fdisk, but with more features. …
- cfdisk. …
- parted. …
- df. …
- pydf. …
- lsblk. …
- blkid.
How increase space in Linux?
Steps
- Shut down the VM from Hypervisor.
- Expand the disk capacity from settings with your desired value. …
- Start the VM from the hypervisor.
- Login to virtual machine console as root.
- Execute below command to check the disk space.
- 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
- Uninstall unnecessary apps and programs. Just because you’re not actively using an outdated app doesn’t mean it’s still not hanging around. …
- Clean your desktop. …
- Get rid of monster files. …
- Use the Disk Cleanup Tool. …
- Discard temporary files. …
- Deal with downloads. …
- Save to the cloud.
How do I check my C drive space?
View storage usage on Windows 10
- Open Settings.
- Click on System.
- Click on Storage.
- Under the “Local Disk C:” section, click the Show more categories option. …
- See how the storage is being utilized. …
- 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.”