linux文件大小

du -sh file_path

Explanation

  • du (disc usage) command estimates file_path space usage
  • The options -sh are (from man du):

    -s,--summarize
             display only a total for each argument
    
      -h,--human-readable
             print sizes in human readable format (e.g.,1K 234M 2G)

    To check more than one directory and see the total,use du -sch:

    -c,--total
             produce a grand total

How do I get the size of a directory on the command line?

相关文章

在Linux系统中,设置ARP防火墙可以通过多种方法实现,包括使...
在Linux环境下,使用Jack2进行编译时,可以采取以下策略来提...
`getid`命令在Linux系统中用于获取当前进程的有效用户ID(EU...
在Linux环境下,codesign工具用于对代码进行签名,以确保其完...
Linux中的`tr`命令,其英文全称是“transform”,即转换的意...
Linux中的ARP防火墙是一种用于防止ARP欺骗攻击的安全措施,它...