RFC: df --output=name to show specified file names (original) (raw)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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 case?
thanks, Pádraig.
df-output-name.patch
Description: Text Data
- RFC: df --output=name to show specified file names,Pádraig Brady <=
- Re: RFC: df --output=name to show specified file names, Bernhard Voelker, 2013/11/22
* Re: RFC: df --output=name to show specified file names, Pádraig Brady, 2013/11/22
* Re: RFC: df --output=name to show specified file names, Bernhard Voelker, 2013/11/22
* Re: RFC: df --output=name to show specified file names, Pádraig Brady, 2013/11/22
* Re: RFC: df --output=name to show specified file names, Bernhard Voelker, 2013/11/22
* Re: RFC: df --output=name to show specified file names, Pádraig Brady, 2013/11/22
- Re: RFC: df --output=name to show specified file names, Bernhard Voelker, 2013/11/22
- Prev by Date:Re: Add --dereference option to df
- Next by Date:Re: [PATCH] tail should dereference watched file
- Previous by thread:Re: [PATCH] tail should dereference watched file
- Next by thread:Re: RFC: df --output=name to show specified file names
- Index(es):