file
英 [faɪl] 美 [faɪl]
vt.提出(离婚诉讼或其他讼案);把…归档;用锉锉;发稿,寄给报社
vi.发送(报道给报社);排成一行行走;提出申请
n.档案;文件(夹);纵列;锉刀
第三人称单数: files 复数: files 现在分词: filing 过去式: filed 过去分词: filed
Linux file命令 语法
作用:file命令用于辨识文件类型。通过file指令,我们得以辨识该文件的类型。
语法:file [-bcLvz][-f <名称文件>][-m <魔法数字文件>...][文件或目录...]
Linux file命令 示例
显示文件类型:
[root@localhost ~]# file install.log install.log: UTF-8 Unicode text[root@localhost ~]# file -b install.log <== 不显示文件名称UTF-8 Unicode text[root@localhost ~]# file -i install.log <== 显示MIME类别。install.log: text/plain; charset=utf-8[root@localhost ~]# file -b -i install.log text/plain; charset=utf-8
显示符号链接的文件类型
[root@localhost ~]# ls -l /var/mail lrwxrwxrwx 1 root root 10 08-13 00:11 /var/mail -> spool/mail[root@localhost ~]# file /var/mail/var/mail: symbolic link to `spool/mail' [root@localhost ~]# file -L /var/mail /var/mail: directory [root@localhost ~]# file /var/spool/mail /var/spool/mail: directory [root@localhost ~]# file -L /var/spool/mail /var/spool/mail: directory
热门推荐
- HTML5代码如何实现分块上传 HTML5代码中File API的大文件处理
- composer的pre-file-download事件怎么用_解析pre-file-download事件在下载前的应用
- composer提示“Your lock file is out of sync”怎么办_说明解决lock文件不同步的方法
- 使用JavaScript File API与Axios模拟大文件上传
- 模拟Axios大文件上传:无需实际文件,利用File构造函数进行测试
- composer提示“The lock file is not up to date with the latest changes in composer.json”怎么办