Wednesday 20 July 2016

Shell script for disk usage


Script for disk usage

cat diskUsage.sh
#!/bin/bash
/bin/df -t ext4 -m | tail -l| awk {'print $3 " " $4 " " $5'}

sh diskUsage.sh
Used Available Use%
1248 16786 7%

No comments:

Post a Comment