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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content