What is the unix command to see how much disk space there is and how much is remaining?

后端 未结 10 524
别那么骄傲
别那么骄傲 2021-02-05 05:53

I\'m looking for the equivalent of right clicking on the drive in windows and seeing the disk space used and remaining info.

相关标签:
10条回答
  • 2021-02-05 06:46
    df -tk
    

    for Disk Free size in 1024 byte blocks

    0 讨论(0)
  • 2021-02-05 06:47

    su -sm ./*

    You can see every file and folder size (-sm=Mb ; -sk=Kb) in the current directory like a list. This way runs in all Unix/Linux environment.

    0 讨论(0)
  • 2021-02-05 06:48

    Use the df command:

    df -h

    0 讨论(0)
  • 2021-02-05 06:49
    df -g .
    

    Option g for Size in GBs Block and . for current working directory.

    0 讨论(0)
提交回复
热议问题