Linux command to check disk space using: 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. Linux check disk space with df command Open the terminal and type the following command to check disk space. The basic syntax for df is: df [options] [devices] Type: df df -H Sample outputs: Fig.01: df command in action The items in square brackets are optional. You can simply type the df command (i.e. no arguments), to see a table that lists for each device name on the system. See information about specific filesystem You can give a device or mount point as an argument, and df report data only for the filesystem physically residing on that device. For example, the following command provides information only for the partiti...
Hi, I’m Deepak Dubey. The founder of this blog. I’m a Full-stack Python Developer | OpenedX professional and part-time blogger. I’m here to write the blogs related to technology stuff like Python, Django , Open-edX, Data Science, machine Learning and many more.