zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    iis7无法写入配置文件
    重写基类方法与隐藏基类方法的区别
    观察者模式上班玩游戏,老总是怎么知道的?
    Session过期和清除缓存 .
    C#基础概念
    php反序列化漏洞绕过魔术方法 __wakeup
    Shadow broker=>fuzzbunch+metasploit 攻击外网测试以及metasploit大批量扫描目标IP
    Python “ValueError: incomplete format” upon print(“stuff %” % “thingy”) 解决方法
    CSTC2017Webwriteup
    php 弱类型总结
  • 原文地址:https://www.cnblogs.com/kingsonfu/p/9856979.html
Copyright © 2011-2022 走看看