Linux Disk Space Command

A third party app that shows the available disk space or by command line way via the linux terminal two of which are df and du where du is disk space used and df is disk space free.
Linux disk space command. Btrfs fi df device show disk space usage information for a btrfs based mount point file system. The basic syntax is. Df can display free disk space. Du du path do dir du options directories and or files.
Check disk space in linux with du command the du command displays disk usage. 12 useful df commands to check disk space in linux 1. Checking disk space in linux using command line last updated. It s very simple in both usage and reporting.
The fdisk command can display the partitions and details like file system type. Filesystem 1k blocks used available use mounted on. Df command shows the amount of disk space used and available on linux file systems. The df command is the tool i first used to discover drive space on linux way back in the 1990s.
Fdisk fdisk is the most commonly used command to check the partitions on a disk. Bash contains two useful commands related to disk space. It is useful to find out the names of directories and files that consume large amounts of space on a disk. To discover what s taking up the used disk space use du disk usage.
Display information of all file system disk space usage the same as above but it also displays information of dummy. Check file system disk space usage the df command displays the information of device name total blocks total. Use it to display the amount of space used by your current directory. Linux check disk space with the du command.
However it does not report the size of each partitions. You ll see a lot of output similar to the screenshot below. Df h shows disk space in human readable format df a shows the file system s complete disk usage even if the available field is 0. Or read its man page by typing the following command.
To this day df is my go to command for this task. The df command stands for disk free and shows available and used disk space on the linux system. This tool can display disk usage for individual directories in linux giving you a finer grained view of your disk usage. Viewing the total available and used disk space.
Du command display the amount of disk space used by the specified files and for each subdirectory. Type df and press enter in a bash terminal window to get started. To find out the available and used disk space use df disk filesystems sometimes called disk free. Here s what it will return when run.
This is the most basic command of all. The na command is very useful to track down disk space hogs.