parent
d5657eb1f8
commit
04688e5b8a
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
function hddUsage {
|
||||
df --output=pcent $hdd | tail -1 | grep -Po "(\\d+)" --color=never
|
||||
}
|
||||
|
||||
function hddTop {
|
||||
du -hd 3 / --exclude="/proc" | sort -hr | grep -E "/.*/.*/" | head -n 3 | sed -e 's/\t/%20/g; s:/:%2F:g; a%0A' | sed -e '1i \%0A' | tr -d '\n'
|
||||
}
|
Loading…
Reference in new issue