The Tech Edvocate

Top Menu

  • Advertisement
  • Apps
  • Home Page
  • Home Page Five (No Sidebar)
  • Home Page Four
  • Home Page Three
  • Home Page Two
  • Home Tech2
  • Icons [No Sidebar]
  • Left Sidbear Page
  • Lynch Educational Consulting
  • My Account
  • My Speaking Page
  • Newsletter Sign Up Confirmation
  • Newsletter Unsubscription
  • Our Brands
  • Page Example
  • Privacy Policy
  • Protected Content
  • Register
  • Request a Product Review
  • Shop
  • Shortcodes Examples
  • Signup
  • Start Here
    • Governance
    • Careers
    • Contact Us
  • Terms and Conditions
  • The Edvocate
  • The Tech Edvocate Product Guide
  • Topics
  • Write For Us
  • Advertise

Main Menu

  • Start Here
    • Our Brands
    • Governance
      • Lynch Educational Consulting, LLC.
      • Dr. Lynch’s Personal Website
      • Careers
    • Write For Us
    • The Tech Edvocate Product Guide
    • Contact Us
    • Books
    • Edupedia
    • Post a Job
    • The Edvocate Podcast
    • Terms and Conditions
    • Privacy Policy
  • Topics
    • Assistive Technology
    • Child Development Tech
    • Early Childhood & K-12 EdTech
    • EdTech Futures
    • EdTech News
    • EdTech Policy & Reform
    • EdTech Startups & Businesses
    • Higher Education EdTech
    • Online Learning & eLearning
    • Parent & Family Tech
    • Personalized Learning
    • Product Reviews
  • Advertise
  • Tech Edvocate Awards
  • The Edvocate
  • Pedagogue
  • School Ratings

logo

The Tech Edvocate

  • Start Here
    • Our Brands
    • Governance
      • Lynch Educational Consulting, LLC.
      • Dr. Lynch’s Personal Website
        • My Speaking Page
      • Careers
    • Write For Us
    • The Tech Edvocate Product Guide
    • Contact Us
    • Books
    • Edupedia
    • Post a Job
    • The Edvocate Podcast
    • Terms and Conditions
    • Privacy Policy
  • Topics
    • Assistive Technology
    • Child Development Tech
    • Early Childhood & K-12 EdTech
    • EdTech Futures
    • EdTech News
    • EdTech Policy & Reform
    • EdTech Startups & Businesses
    • Higher Education EdTech
    • Online Learning & eLearning
    • Parent & Family Tech
    • Personalized Learning
    • Product Reviews
  • Advertise
  • Tech Edvocate Awards
  • The Edvocate
  • Pedagogue
  • School Ratings
  • US Battery as a Service Market Shifts Toward Fleet-Based Energy

  • The Startling Truth: Why Americans Distrust AI with Their Health

  • This Crucial Deadline for Banks Is Closer Than You Think

  • Baffling: CrowdStrike’s $500 Million AI Bet Reshapes Cybersecurity

  • This Crucial Autonomous Driving Rule Could Cost You Everything

  • Baffling: Microsoft AI CEO Demands Halt to Conscious AI Development

  • O seară în ritmul tău: atmosfera divertismentului de cazinou pe internet

  • Outrageous: AppLovin Hit With Lawsuit Over AI Claims — What Investors Need to Know

  • 9 Critical Ways AI Investment Fraud Is Quietly Draining Your Bank Account

  • Is the AI Bubble Bursting? OpenAI’s Funding Woes Revealed

Digital & Mobile Technology
Home›Digital & Mobile Technology›How to Check Disk Usage on Linux With duf

How to Check Disk Usage on Linux With duf

By Matthew Lynch
August 3, 2023
0
Spread the love

As a Linux user, it’s important to keep an eye on your disk space. When you are running low on disk space, it can slow down your system, cause errors, and even lead to data loss. It is always better to catch the issue before it becomes too serious. In this article, we’ll learn how to check disk usage on Linux with duf.

What is duf?

Duf is a tool that makes it easy to check disk usage on Linux. Unlike the popular command “df” that comes pre-installed on almost all Linux systems, duf is a more user-friendly and interactive tool.

duf displays the disk usage of all your mounted devices in a simple and easy-to-understand format. It is written in Golang, open source, and supports various platforms such as Linux, BSD, macOS, and even Windows.

Installing duf

Before we proceed, we’ll need to install duf. If you’re using Linux, use your package manager to install.

Example for Debian based systems:

sudo apt-get install duf

If you’re using macOS, you can use Homebrew to install.

brew install duf

Checking Disk Usage with duf

Now that we have installed duf, let’s learn how to use it.

Open up your terminal and type duf. You should see an output similar to the image below.

![Duf Output](https://cdn-images-1.medium.com/max/800/1*Axu8548nTfTwhZKMimYJFQ.png)

Duf will list the disk storage capacity, used storage, free storage, and the percentage of used storage of all your mounted devices.

As you can see in the screenshot above, the output from duf is arranged in a table view showing the file path to the mounted device, the storage capacity, used storage, and free storage in a human-readable format.

You can also sort the results in ascending or descending order based on any column by using the -sort flag as shown below.

duf -sort path

By default, duf doesn’t show hidden directories. You can display hidden directories by using the -a flag.

duf -a

There is also the option of filtering the results. For example, let’s suppose you only want to see the output of your external HDD.

duf -path /media/user/EXTERNAL_HDD

This will display only the disk usage of your external HDD.

Conclusion

Keeping an eye on disk usage is one of the most important things you can do to protect your data and keep your Linux system running smoothly. With duf, it’s easy to monitor disk usage in a more user-friendly and interactive way. Duf’s simple and easy-to-understand format makes it a great alternative to the traditional df command. By following the steps outlined in this article, you’ll be able to start monitoring your disk usage on Linux with duf in no time.

Previous Article

7 Ways to Earn Money From Coding ...

Next Article

Microsoft Edge for Mac: Should You Use ...

Matthew Lynch

Related articles More from author

  • Digital & Mobile Technology

    The Best Storm Tracker Apps of 2023

    June 4, 2023
    By Matthew Lynch
  • Digital & Mobile Technology

    How to Recover Images Off a Corrupted SD Card

    May 3, 2023
    By Matthew Lynch
  • Digital & Mobile Technology

    What Is a Sound Bar?

    July 31, 2023
    By Matthew Lynch
  • Digital & Mobile Technology

    Best Free TV Streaming Services: Tubi, Sling Freestream, Pluto TV and More

    April 11, 2023
    By Matthew Lynch
  • Digital & Mobile Technology

    How to Fix the “File or Directory is Corrupted and Unreadable” Error on a Windows 10 Computer

    August 5, 2023
    By Matthew Lynch
  • Digital & Mobile Technology

    Does BeReal Notify Someone When a Screenshot Is Taken?

    August 5, 2023
    By Matthew Lynch

Search

Login & Registration

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Newsletter

Signup for The Tech Edvocate Newsletter and have the latest in EdTech news and opinion delivered to your email address!

About Us

Since technology is not going anywhere and does more good than harm, adapting is the best course of action. That is where The Tech Edvocate comes in. We plan to cover the PreK-12 and Higher Education EdTech sectors and provide our readers with the latest news and opinion on the subject. From time to time, I will invite other voices to weigh in on important issues in EdTech. We hope to provide a well-rounded, multi-faceted look at the past, present, the future of EdTech in the US and internationally.

We started this journey back in June 2016, and we plan to continue it for many more years to come. I hope that you will join us in this discussion of the past, present and future of EdTech and lend your own insight to the issues that are discussed.

Newsletter

Signup for The Tech Edvocate Newsletter and have the latest in EdTech news and opinion delivered to your email address!

Contact Us

The Tech Edvocate
910 Goddin Street
Richmond, VA 23231
(601) 630-5238
[email protected]

Copyright © 2026 Matthew Lynch. All rights reserved.