Updated the way to get the remaining space on /home and /root
This commit is contained in:
parent
e4c0bb187d
commit
af9bba349d
@ -20,14 +20,12 @@ kernelver() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
home() {
|
home() {
|
||||||
# disk=$(df -h | awk 'NR==8{print $3, $5}')
|
home=$(df -h /home/ | awk 'NR==2{print $3}')
|
||||||
home=$(df -h | awk 'NR==8{print $3}')
|
|
||||||
echo -e "/home: $home"
|
echo -e "/home: $home"
|
||||||
}
|
}
|
||||||
|
|
||||||
root() {
|
root() {
|
||||||
# disk=$(df -h | awk 'NR==4{print $3, $5}')
|
root=$(df -h /root/ | awk 'NR==2{print $3}')
|
||||||
root=$(df -h | awk 'NR==4{print $3}')
|
|
||||||
echo -e "/: $root"
|
echo -e "/: $root"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user