使用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 17Mbug root@WinJay:/var/www#
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/160552.html