zoukankan      html  css  js  c++  java
  • linux常用命令之压缩打包

    DF

    df – report file system disk space usage 查看文件系统的使用清空

    用法

    df [-hi] [path]

    选项

    • -h human readable ,以人类易读的方式显示size
    • -i inode 显示inode,不显示硬盘容量

    DEMO

    df

    注意

    • df后面接path的话,会输出这个path所在的文件系统的信息

    DU

    du – show file space usage ,输出文件的大小

    默认情况下,输出当前目录和所有子目录的大小

    选项

    -s display only a total for each argument,仅显示当前目录的总大小

    -S exclude size of subdirectories ,排除子目录的大小

    -h human readable

    DEMO

    du

    LN

    ln – make links between files ,创建文件之间的连接

    默认是硬连接

    用法

    ln [-sf] source destination

    选项

    • -s symbolic links ,软连接
    • -f force,暴力,不管destination有没有存在,直接复制

    STAT

    stat – display file or file system status,显示文件或文件系统的状态

    可以用这个指令看inode信息

    默认情况是显示出文件的inode信息

    用法

    stat [-f] file

    选项

    -f file system,显示该file所在的文件系统super inode信息

    DEMO

    stat

    不加选项,显示文件的inode

    加了选项,显示文件所在磁盘的inode信息

    查看原文:点击打开链接

  • 相关阅读:
    csp2020游记
    agc006_f Blackout
    CF1368G Shifting Dominoes
    AtCoder Grand Contest 009 简要题解
    Codeforces Round #666 (Div. 1)
    CSP 2019 树的重心
    Luogu-P4859 已经没什么好害怕的了
    2020.9.17 校内测试
    CF379F New Year Tree
    图论(小结论)
  • 原文地址:https://www.cnblogs.com/wewill/p/5588728.html
Copyright © 2011-2022 走看看