Get free disk space with df to just display free space in kb?

后端 未结 4 1132
谎友^
谎友^ 2020-12-13 13:35

I\'m trying to output the amount of free disk space on the filesystem /example.

If I run the command df -k /example I can get good informat

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-13 14:10

    This is another solution:

    df --output=avail -m /example | tail -1
    

    output:

    6415

提交回复
热议问题