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
Nvidia’s RTX 4090 is a phenomenal graphics card, but you probably shouldn’t buy it
The Minimum Amount a Debt Collection Agency Will Sue You For
11 beste sites voor Word-labelsjablonen (2024) [GRATIS]
Fiskars X27 Kloofbijl - 92 cm | bol
417-990-0201
NYT Mini Crossword today: puzzle answers for Tuesday, September 17 | Digital Trends
Dollywood's Smoky Mountain Christmas - Pigeon Forge, TN
Couchtuner The Office
Category: Star Wars: Galaxy of Heroes | EA Forums
Rls Elizabeth Nj
Horned Stone Skull Cozy Grove
Slope Unblocked Minecraft Game
Seafood Bucket Cajun Style Seafood Restaurant in South Salt Lake - Restaurant menu and reviews
Caliber Collision Burnsville
Missed Connections Dayton Ohio
Munich residents spend the most online for food
Divina Rapsing
Pokemon Unbound Shiny Stone Location
Poe Str Stacking
The Ultimate Guide to Extras Casting: Everything You Need to Know - MyCastingFile
Sullivan County Image Mate
Highmark Wholecare Otc Store
Walmart Pharmacy Near Me Open
Sensual Massage Grand Rapids
12657 Uline Way Kenosha Wi
Vivification Harry Potter
My Reading Manga Gay
Restored Republic
Haunted Mansion Showtimes Near Cinemark Tinseltown Usa And Imax
Teenbeautyfitness
Most popular Indian web series of 2022 (so far) as per IMDb: Rocket Boys, Panchayat, Mai in top 10
Google Jobs Denver
拿到绿卡后一亩三分地
Telegram update adds quote formatting and new linking options
Koninklijk Theater Tuschinski
Www Craigslist Com Brooklyn
Mytime Maple Grove Hospital
Gasoline Prices At Sam's Club
Craigslist Malone New York
Valls family wants to build a hotel near Versailles Restaurant
Sound Of Freedom Showtimes Near Amc Mountainside 10
Matt Brickman Wikipedia
Walmart Careers Stocker
Craigslist Pet Phoenix
Wpne Tv Schedule
Dobratz Hantge Funeral Chapel Obituaries
Craigslist Pets Charleston Wv
Fresno Craglist
Mkvcinemas Movies Free Download
Ihop Deliver
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.