mirror of
https://github.com/notwa/rc
synced 2024-11-05 02:29:06 -08:00
document dfu
This commit is contained in:
parent
14677b3acf
commit
364a0eff66
1 changed files with 7 additions and 1 deletions
8
sh/dfu
8
sh/dfu
|
@ -6,7 +6,13 @@
|
|||
dfu() { ### @-
|
||||
### pretty-print `df` in GiB.
|
||||
###
|
||||
### **TODO:** restore examples.
|
||||
### ```
|
||||
### $ dfu
|
||||
### Filesystem Used Max Left Misc
|
||||
### /dev 0.00 0.46 0.46 0.00
|
||||
### / 17.20 23.22 6.01 1.27
|
||||
### ```
|
||||
|
||||
[ $# -le 0 ] || { printf "%s\n" "$0: too many arguments" >&2; return 1; }
|
||||
df -xtmpfs | awk '
|
||||
NR==1{printf"%-20s %7s %7s %7s %7s\n","Filesystem","Used","Max","Left","Misc"}
|
||||
|
|
Loading…
Reference in a new issue