跳至主要內容

file

Mr.Hope...小于 1 分钟

file

file 命令用来某个文件的类型。

$ file index.html
 index.html: HTML document, ASCII text

file 工具可以对所给的文件一行简短的介绍,它用文件后缀、头部信息和一些其他的线索来判断文件。您在检查一堆您不熟悉的文件时使用 find 非常方便:

$ find -exec file {} \;
.:            directory
./hanoi:      Perl script, ASCII text executable
./.hanoi.swp: Vim swap file, version 7.3
./factorial:  Perl script, ASCII text executable
./bits.c:     C source, ASCII text
./bits:       ELF 32-bit LSB executable, Intel 80386, version ...
评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v3.1.3