5 Linux commands to check free disk space (2024)

Keeping track of disk utilization information is on system administrators' (and others') daily to-do list. Linux has a few built-in utilities that help provide that information.

Linuxdf command

The df command stands for "disk-free," and shows available and used disk space on the Linux system.

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

5 Linux commands to check free disk space (1)

df -T shows the disk usage along with each block's filesystem type (e.g., xfs, ext2, ext3, btrfs, etc.)

df -i shows used and free inodes

5 Linux commands to check free disk space (2)

You can get this information in a graphical view using the Disks (gnome-disk-utility) in the GNOME desktop. Launch it to see all disks detected by your computer, and click a partition to see details about it, including space used and space remaining.

5 Linux commands to check free disk space (3)

Image by:

opensource.com

Linuxdu command

du shows the disk usage of files, folders, etc. in the default kilobyte size

du -h shows disk usage in human-readable format for all directories and subdirectories

du -a shows disk usage for all files

du -s provides total disk space used by a particular file or directory

5 Linux commands to check free disk space (4)

The following commands will check your total space and your utilized space.

This information can be represented visually in GNOME with the Disk Usage application, or with Filelight in the KDE Plasma desktop. In both applications, disk usage is mapped to concentric circles, with the middle being the base folder (usually your /home directory, but it's up to you) with each outer ring representing one directory level deeper. Roll your mouse over any segment for detailed information about what's taking up space.

5 Linux commands to check free disk space (5)

Image by:

opensource.com

Linux ls -al command

ls -al lists the entire contents, along with their size, of a particular directory

5 Linux commands to check free disk space (6)

Linux stat command

stat <file/directory>displays the size and other stats of a file/directory or a filesystem.

5 Linux commands to check free disk space (7)

Linux fdisk -l command

fdisk -l shows disk size along with disk partitioning information

5 Linux commands to check free disk space (8)

These are most of the built-in utilities for checking file space in Linux. There are many similar tools, like Disks (GUI), Ncdu, etc., that also show disk space utilization. Do you have a favorite tool that's not on this list? Please share in the comments.

This article was originally published in July 2018 and has been updated to include additional information.

5 Linux commands to check free disk space (9)This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License.

5 Linux commands to check free disk space (2024)
Top Articles
Kursy, ceny kryptowalut 1-25
BlackBerry (BB) - P/S ratio
Craigslist Vans
What are Dietary Reference Intakes?
Chalupp's Pizza Taos Menu
5 Bijwerkingen van zwemmen in een zwembad met te veel chloor - Bereik uw gezondheidsdoelen met praktische hulpmiddelen voor eten en fitness, deskundige bronnen en een betrokken gemeenschap.
Corpse Bride Soap2Day
ds. J.C. van Trigt - Lukas 23:42-43 - Preekaantekeningen
True Statement About A Crown Dependency Crossword
Florida (FL) Powerball - Winning Numbers & Results
Used Wood Cook Stoves For Sale Craigslist
Nonuclub
Zürich Stadion Letzigrund detailed interactive seating plan with seat & row numbers | Sitzplan Saalplan with Sitzplatz & Reihen Nummerierung
Nebraska Furniture Tables
Classic Lotto Payout Calculator
Viha Email Login
Napa Autocare Locator
Grayling Purnell Net Worth
Epguides Strange New Worlds
Skip The Games Fairbanks Alaska
Craigslist Pearl Ms
Is Windbound Multiplayer
Yosemite Sam Hood Ornament
Play It Again Sports Norman Photos
Avatar: The Way Of Water Showtimes Near Maya Pittsburg Cinemas
Elite Dangerous How To Scan Nav Beacon
Craigslist Hunting Land For Lease In Ga
800-695-2780
Wonder Film Wiki
Is Henry Dicarlo Leaving Ktla
Waters Funeral Home Vandalia Obituaries
How do you get noble pursuit?
30+ useful Dutch apps for new expats in the Netherlands
Srjc.book Store
Ringcentral Background
Noaa Marine Forecast Florida By Zone
Moonrise Time Tonight Near Me
new haven free stuff - craigslist
Jr Miss Naturist Pageant
Craigslist Lakeside Az
Buhsd Studentvue
Sunrise Garden Beach Resort - Select Hurghada günstig buchen | billareisen.at
Skip The Games Grand Rapids Mi
RECAP: Resilient Football rallies to claim rollercoaster 24-21 victory over Clarion - Shippensburg University Athletics
Makes A Successful Catch Maybe Crossword Clue
CrossFit 101
Noga Funeral Home Obituaries
Goosetown Communications Guilford Ct
Kenmore Coldspot Model 106 Light Bulb Replacement
Noelleleyva Leaks
Vrca File Converter
Latest Posts
Article information

Author: Dong Thiel

Last Updated:

Views: 5925

Rating: 4.9 / 5 (59 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Dong Thiel

Birthday: 2001-07-14

Address: 2865 Kasha Unions, West Corrinne, AK 05708-1071

Phone: +3512198379449

Job: Design Planner

Hobby: Graffiti, Foreign language learning, Gambling, Metalworking, Rowing, Sculling, Sewing

Introduction: My name is Dong Thiel, I am a brainy, happy, tasty, lively, splendid, talented, cooperative person who loves writing and wants to share my knowledge and understanding with you.