Aktionen
check free space¶
this is useful if you want to double check before a lengthy procress that there will be enough space on the drive
FREE=`df -k --output=avail "$PWD" | tail -n1` # df -k not df -h if [[ $FREE -lt 10485760 ]]; then # 10G = 10*1024*1024k # less than 10GBs free! fi;
Von Jeremias Keihsler vor etwa 7 Jahren aktualisiert · 1 Revisionen