[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RFC: df --output=name to show specified file names

From: Pádraig Brady
Subject: RFC: df --output=name to show specified file names
Date: Fri, 22 Nov 2013 02:19:02 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

I was looking at disk usage today and found that being able
to output the specified file names in the display would be useful.
Consider the new 'Name' column in:

$ df --o=target,name,pcent /var/*
Mounted on Name          Use%
/          /var/cache     71%
/          /var/lib       71%
/          /var/local     71%
/run       /var/lock       1%
/          /var/log       71%
/run       /var/run        1%
/          /var/spool     71%
/var/tmp   /var/tmp       71%
/          /var/www       71%

The attached implements this.
Worth adding?

One caveat is that the Name is '-' if you don't specify any arguments to df,
so therefore if you output all columns by using --output without a parameter,
you'll get a redundant column. I suppose one might suppress this column in that 


Attachment: df-output-name.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]