Sun, 07 Nov 2021 17:35:42 -0700 Todd C. Miller
> df honors the BLOCKSIZE environment variable so you can already do
> things like:
>
> $ BLOCKSIZE=1m df
> Filesystem 1M-blocks Used Avail Capacity Mounted on
> /dev/sd1a1008 175 78218%/
>
df honors the BLOCKSIZE environment variable so you can already do
things like:
$ BLOCKSIZE=1m df
Filesystem 1M-blocks Used Avail Capacity Mounted on
/dev/sd1a1008 175 78218%/
/dev/sd1m 124124 29107 8881025%/home
On Sun, Nov 07, 2021 at 07:46:37PM -0300, Crystal Kolipe wrote:
> > df(1) is missing the standard options to display size units in
> > Megabytes or Gigabytes.
>
> alias df_m="df | perl -e '<>; print ("Filesystem1M-blocks Used
> Available Capacity Mounted on\n"); while
> df(1) is missing the standard options to display size units in
> Megabytes or Gigabytes.
alias df_m="df | perl -e '<>; print ("Filesystem1M-blocks Used
Available Capacity Mounted on\n"); while ($i=<>) { $i =~ /^(.*?) +(\d+) +(\d+)
+(\d+)(.*)/; printf ("%s % 13d % 10d
On 2021/11/07 16:07, s...@sdf.org wrote:
> >Synopsis:df(1) missing -m and -g options
> >Category:Userland
> >Environment:
> System : OpenBSD 7.0
> Details : OpenBSD 7.0 (GENERIC.MP) #232: Thu Sep 30 14:25:29 MDT
> 2021
>
>
>Synopsis: df(1) missing -m and -g options
>Category: Userland
>Environment:
System : OpenBSD 7.0
Details : OpenBSD 7.0 (GENERIC.MP) #232: Thu Sep 30 14:25:29 MDT
2021