df

How to select a particular column in linux df command

∥☆過路亽.° 提交于 2019-11-27 04:47:30
问题 I am trying to collect information on the amount of space left on different servers. So when I execute df -k i get output as: Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/ad1s1f 125925198 2568970 113282214 2% /builds And sometimes the output comes as : Filesystem 1K-blocks Used Available Use% Mounted on 10.102.1.123:/storage/disk1/build 10735331328 10597534720 137796608 99% /buildbackup Now I want to fetch data on the disk space available. So let me know how to fetch data from a