I tried this by typing df -k .
, I get the following:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 16512936 8650196 7023932 56% /
I tailed the last statement and gwt 4th block . but if file system name is long ,then
df -k .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_vomesx6vm24-lv_root
51606140 1963476 47021224 5% /
is failing to get fouth block as fourth block is 5% . How to get available space in any situation ?