mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2026-03-03 11:30:42 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
<h2 id="补充说明">补充说明</h2>
|
||||
<p><strong>file命令</strong> 用来探测给定文件的类型。file命令对文件的检查分为文件系统、魔法幻数检查和语言检查3个过程。</p>
|
||||
<h3 id="语法">语法</h3>
|
||||
<pre><code>file(选项)(参数)</code></pre>
|
||||
<pre><code class="language-bash">file(选项)(参数)</code></pre>
|
||||
<h3 id="选项">选项</h3>
|
||||
<pre><code>-b:列出辨识结果时,不显示文件名称;
|
||||
<pre><code class="language-bash">-b:列出辨识结果时,不显示文件名称;
|
||||
-c:详细显示指令执行过程,便于排错或分析程序执行的情形;
|
||||
-f<名称文件>:指定名称文件,其内容有一个或多个文件名称时,让file依序辨识这些文件,格式为每列一个文件名称;
|
||||
-L:直接显示符号连接所指向的文件类别;
|
||||
@@ -16,7 +16,7 @@
|
||||
<p>文件:要确定类型的文件列表,多个文件之间使用空格分开,可以使用shell通配符匹配多个文件。</p>
|
||||
<h3 id="实例">实例</h3>
|
||||
<p>显示文件类型</p>
|
||||
<pre><code>[root@localhost ~]# file install.log
|
||||
<pre><code class="language-bash">[root@localhost ~]# file install.log
|
||||
install.log: UTF-8 Unicode text
|
||||
|
||||
[root@localhost ~]# file -b install.log <== 不显示文件名称
|
||||
@@ -29,7 +29,7 @@ install.log: text/plain; charset=utf-8
|
||||
text/plain; charset=utf-8
|
||||
</code></pre>
|
||||
<p>显示符号链接的文件类型</p>
|
||||
<pre><code>[root@localhost ~]# ls -l /var/mail
|
||||
<pre><code class="language-bash">[root@localhost ~]# ls -l /var/mail
|
||||
lrwxrwxrwx 1 root root 10 08-13 00:11 /var/mail -> spool/mail
|
||||
|
||||
[root@localhost ~]# file /var/mail
|
||||
|
||||
Reference in New Issue
Block a user