zoukankan      html  css  js  c++  java
  • Linux 命令

    命令格式

    file [-bchikLNnprsvz0] [--apple] [--mime-encoding] [--mime-type] [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ...

    file -C [-m magicfiles]

    file [--help]

    命令参数

    -b, --brief
      不输出文件名(简要模式)。

    -L, --dereference
      直接显示符号连接所指向的文件的类型。

    -v, --version
      打印版本信息。

    -z, --uncompress
      试图查看压缩文件内部信息。

    --help
      打印帮助信息。

    实例

    a) 查看文件 hello.sh、hello.ln 和 hello.zip 的类型。

    [huey@huey-K42JE ~]$ file hello.sh hello.ln hello.zip 
    hello.sh:  Bourne-Again shell script text executable
    hello.ln:  symbolic link to `hello.sh'
    hello.zip: Zip archive data, at least v1.0 to extract

    b) 直接显示 hello.ln 所指向的文件的类型。

    [huey@huey-K42JE ~]$ file -L hello.sh
    hello.sh: Bourne-Again shell script text executable

    c) 试图查看压缩文件 hello.zip 的内部信息。

    [huey@huey-K42JE ~]$ file -z hello.zip 
    hello.zip: Bourne-Again shell script text executable (Zip archive data, at least v1.0 to extract)
  • 相关阅读:
    钟国晨160809323(作业5)
    12
    11
    第九次
    8作业
    第七次作业
    6
    林昊5
    计算机网络原理与应用笔记 3/29
    计算机网络原理与应用笔记 3/22
  • 原文地址:https://www.cnblogs.com/huey/p/4849087.html
Copyright © 2011-2022 走看看