4. Check Disk Space Usage of /home Directory The command"df -hT /home"is used to display disk space utilization of/homedirectory or partition in a human-readable format. The-Toption shows the filesystem type (ext4) along with other information. df -hT /home Check /home Directory Disk Spa...
du -s: - This will show you the total disk space used by a specific directory or file.Syntax:$ du -s du -help: - we can use this for help.Syntax$ du -help 2. Using the df optionThe full-form of df command is "disk-free,". Using this command, we can check the used and ...
Check Disk Space In Ubuntu Terminal The “df” command is for “disk filesystem” and is a great tool to know about the disk space usage on Linux Systems. The df command displays the amount of disk space available on the file system. If no file name is given, the space available on ...
Method #1: Use the df Command to Check the Disk Space in Linux Thedfcommand is one of the easiestways to check disk space usageand available block size. Launch the terminal and enter the following command: # df As you can see, thedfcommand, which stands for disk free, displays how muc...
You can also use the df command to check the disk space of a specific drive. To do this, simply specify the path to the drive as an argument to the df command. For example, to check the disk space of the /home directory, you would use the following command: ...
(minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x9277b47b Device Boot Start End Blocks Id System /dev/vdb1 2048 41943039 20970496 83 Linux Command (m for help): d Selected partition 1 Partition 1 is deleted Command (m for help): p Disk /dev/vdb: ...
Ncdu just checks the space used by a directory and drills down. On the other hand the df command reports space used by different storage devices. The du command is more of raw in nature and reports space used by individual files and recursively into sub directories. Due to this the out...
Here's a step-by-step guide on how to use the df command to check disk space − Open a terminal window − The first step is to open a terminal window on your Linux system. You can do this by pressing "Ctrl + Alt + T" or by searching for "Terminal" in your application launch...
Method 1: Checking free disk space in Linux with df command (and understanding its output) When you use the df command to check disk space, it will show a bunch of ‘file systems’ with their size, used space and free space. Your actual disks should normally be listed as one of the ...
As you can see,du -hshows, in human-readable format, how much disk space each directory and subdirectory uses from the present working directory. If you want to check the disk usage for a different directory, you can eithercdto that directory or specify it at the end of the command. ...