• linux 查看文件大小命令


    1、# ls -l (k)

    ls -l
    total 2144
    -rw-r----- 1 root root  79427 Oct 17 23:36 catalina.2018-10-17.log
    -rw-r----- 1 root root  34587 Oct 18 23:53 catalina.2018-10-18.log
    -rw-r----- 1 root root 373229 Oct 19 20:58 catalina.2018-10-19.log
    -rw-r----- 1 root root   1152 Oct 21 03:39 catalina.2018-10-21.log
    -rw-r----- 1 root root   1152 Oct 23 13:36 catalina.2018-10-23.log
    -rw-r----- 1 root root   1152 Oct 24 18:43 catalina.2018-10-24.log
    -rw-r----- 1 root root   2997 Oct 26 15:57 catalina.2018-10-26.log
    -rw-r----- 1 root root 940327 Oct 26 15:57 catalina.out
    -rw-r----- 1 root root      0 Oct 17 16:22 host-manager.2018-10-17.log
    -rw-r----- 1 root root      0 Oct 18 21:44 host-manager.2018-10-18.log
    -rw-r----- 1 root root      0 Oct 19 00:07 host-manager.2018-10-19.log
    -rw-r----- 1 root root  10198 Oct 17 23:37 localhost.2018-10-17.log
    -rw-r----- 1 root root   4834 Oct 18 23:53 localhost.2018-10-18.log
    -rw-r----- 1 root root  49734 Oct 19 13:30 localhost.2018-10-19.log
    -rw-r----- 1 root root    577 Oct 26 15:57 localhost.2018-10-26.log
    -rw-r----- 1 root root  24974 Oct 17 23:40 localhost_access_log.2018-10-17.txt
    -rw-r----- 1 root root  94378 Oct 18 23:57 localhost_access_log.2018-10-18.txt
    -rw-r----- 1 root root 307082 Oct 19 20:59 localhost_access_log.2018-10-19.txt
    -rw-r----- 1 root root   3366 Oct 20 21:00 localhost_access_log.2018-10-20.txt
    -rw-r----- 1 root root    218 Oct 21 21:17 localhost_access_log.2018-10-21.txt
    -rw-r----- 1 root root  22491 Oct 22 23:53 localhost_access_log.2018-10-22.txt
    -rw-r----- 1 root root   1211 Oct 23 22:54 localhost_access_log.2018-10-23.txt
    -rw-r----- 1 root root    417 Oct 24 18:43 localhost_access_log.2018-10-24.txt
    -rw-r----- 1 root root 150958 Oct 25 18:47 localhost_access_log.2018-10-25.txt
    -rw-r----- 1 root root   1978 Oct 26 15:55 localhost_access_log.2018-10-26.txt
    -rw-r----- 1 root root      0 Oct 17 16:22 manager.2018-10-17.log
    -rw-r----- 1 root root      0 Oct 18 21:44 manager.2018-10-18.log
    -rw-r----- 1 root root      0 Oct 19 00:07 manager.2018-10-19.log

    2、#ls -lh等效ll -h(命令ls -l等效ll)

    # ls -lh
    total 2.1M
    -rw-r----- 1 root root 78K Oct 17 23:36 catalina.2018-10-17.log
    -rw-r----- 1 root root 34K Oct 18 23:53 catalina.2018-10-18.log
    -rw-r----- 1 root root 365K Oct 19 20:58 catalina.2018-10-19.log
    -rw-r----- 1 root root 1.2K Oct 21 03:39 catalina.2018-10-21.log
    -rw-r----- 1 root root 1.2K Oct 23 13:36 catalina.2018-10-23.log
    -rw-r----- 1 root root 1.2K Oct 24 18:43 catalina.2018-10-24.log
    -rw-r----- 1 root root 3.0K Oct 26 15:57 catalina.2018-10-26.log
    -rw-r----- 1 root root 919K Oct 26 15:57 catalina.out
    -rw-r----- 1 root root 0 Oct 17 16:22 host-manager.2018-10-17.log
    -rw-r----- 1 root root 0 Oct 18 21:44 host-manager.2018-10-18.log
    -rw-r----- 1 root root 0 Oct 19 00:07 host-manager.2018-10-19.log
    -rw-r----- 1 root root 10K Oct 17 23:37 localhost.2018-10-17.log
    -rw-r----- 1 root root 4.8K Oct 18 23:53 localhost.2018-10-18.log
    -rw-r----- 1 root root 49K Oct 19 13:30 localhost.2018-10-19.log
    -rw-r----- 1 root root 577 Oct 26 15:57 localhost.2018-10-26.log
    -rw-r----- 1 root root 25K Oct 17 23:40 localhost_access_log.2018-10-17.txt
    -rw-r----- 1 root root 93K Oct 18 23:57 localhost_access_log.2018-10-18.txt
    -rw-r----- 1 root root 300K Oct 19 20:59 localhost_access_log.2018-10-19.txt
    -rw-r----- 1 root root 3.3K Oct 20 21:00 localhost_access_log.2018-10-20.txt
    -rw-r----- 1 root root 218 Oct 21 21:17 localhost_access_log.2018-10-21.txt
    -rw-r----- 1 root root 22K Oct 22 23:53 localhost_access_log.2018-10-22.txt
    -rw-r----- 1 root root 1.2K Oct 23 22:54 localhost_access_log.2018-10-23.txt
    -rw-r----- 1 root root 417 Oct 24 18:43 localhost_access_log.2018-10-24.txt
    -rw-r----- 1 root root 148K Oct 25 18:47 localhost_access_log.2018-10-25.txt
    -rw-r----- 1 root root 2.0K Oct 26 15:55 localhost_access_log.2018-10-26.txt
    -rw-r----- 1 root root 0 Oct 17 16:22 manager.2018-10-17.log
    -rw-r----- 1 root root 0 Oct 18 21:44 manager.2018-10-18.log
    -rw-r----- 1 root root 0 Oct 19 00:07 manager.2018-10-19.log

  • 相关阅读:
    01pxc集群的部署
    Python简单爬虫获取岗位招聘人数
    nginx跨域问题记录
    自动备份远程mongodb数据库并拉取到本地
    ftp和mysql数据库结合使用
    flask蓝图的简单使用
    apache无法启动报错No space left on device
    简单的接口测试类和测试生成报告工具HTMLTestRunner.py
    简单python接口测试编写和django开发环境的搭建
    Fiddler模拟自动响应数据
  • 原文地址:https://www.cnblogs.com/kingsonfu/p/9856979.html
Copyright © 2020-2023  润新知