fail
Bahasa Inggeris [faɪl] Amerika [faɪl] vt. Failkan (failkan tuntutan mahkamah...; ); berjalan dalam barisan;Perintah fail Linux sintaks
Fungsi: Perintah fail digunakan untuk mengenal pasti jenis fail. Melalui arahan fail, kita boleh mengenal pasti jenis fail tersebut.
Sintaks: fail [-bcLvz][-f <fail nama>][-m <fail nombor ajaib>...][fail atau direktori...]
Perintah fail Linux contoh
Tunjukkan jenis fail:
[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
Tunjukkan jenis fail symlink
[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