What's the most portable way to interpret the output from the 'df' command?

Solution Verified - Updated -

Issue

We noticed that the output of df changed slightly between minor RHEL releases and some of our scripts parsing the output are not working any longer. What is the correct and future-proof way to do it?

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.