功能说明:file命令用于显示文件的类型。 语法格式: file [选项] [<文件或目录>] 选项说明: -b 输出信息使用精简格式,不输出文件名。 查看文件类型 [root@testdb62 tmp]# file 1.log 1.log: ASCII text [root@testdb62 tmp]# file test3 test3: directory