侧边栏壁纸
博主头像
★街角晚灯★博主等级

博观而约取 厚积而薄发

  • 累计撰写 448 篇文章
  • 累计创建 183 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

linux里如何查看文件大小

WinJay
2013-08-09 / 0 评论 / 0 点赞 / 120 阅读 / 1098 字 / 正在检测是否收录...
温馨提示:
文章发布较早,内容可能过时,阅读注意甄别。。。。
使用ls -lht命令显示当前目录下的所有文件,其中有一列就是显示这个文件的大小。
如果要看一个文件夹的大小,可以用du -sh *

root@WinJay:/var/www# ls -lht
ls: error initializing month strings
total 68M
-rw-r--r--  1 root root  68M  8月  9 10:00 www.zip
drwxr-xr-x 16 root root  12K  7月 14 14:04 bug
drwxr-xr-x 44 root root 4.0K  5月 29 14:47 moodle
drwxrwxrwx  7 root root 4.0K  5月 28 15:15 ecoder
drwxr-xr-x  6 root root 4.0K  5月 14 16:49 ppt
drwxr-xr-x  5 root root 4.0K  7月 25  2012 wordpress
-rw-r--r--  1 root root  481  6月 29  2012 find.c
drwxr-xr-x 12 root root 4.0K  6月 26  2012 clickheat
-rwxrwxrwx  1 root root  177  6月 26  2012 index.html
root@WinJay:/var/www# du -sh bug
17M     bug
root@WinJay:/var/www#

      
      
    
0
  1. 支付宝打赏

    qrcode alipay
  2. 微信打赏

    qrcode weixin

评论区