共计 1078 个字符,预计需要花费 3 分钟才能阅读完成。
提醒:本文最后更新于2019-07-21 15:19,文中所关联的信息可能已发生改变,请知悉!
[v_act]格式:file [OPTION…] [FILE…]
类型:
ASCII text:文本文件
directory:目录文件
LSB executable:可执行文件
block special:块文件
character special:字符串文件
symbolic link:链接文件
fifo (named pipe):管道文件
compressed data:压缩数据文件;一般指的是压缩包文件[/v_act]
ASCII text:文本文件
[root@localhost ~]# file anaconda-ks.cfg
anaconda-ks.cfg: ASCII text
directory:目录文件
[root@localhost ~]# file /home/
/home/: directory
LSB executable:可执行文件
[root@localhost ~]# file /bin/ls
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=ceaf496f3aec08afced234f4f36330d3d13a657b, stripped
block special:块文件
[root@localhost ~]# file /dev/sda
/dev/sda: block special
character special:字符串文件
[root@localhost ~]# file /dev/tty
/dev/tty: character special
symbolic link:链接文件
[root@localhost ~]# file /etc/grub2.cfg
/etc/grub2.cfg: symbolic link to `../boot/grub2/grub.cfg'
fifo (named pipe):管道文件
[root@localhost ~]# file /run/systemd/initctl/fifo
/run/systemd/initctl/fifo: fifo (named pipe)
compressed data:压缩数据文件;一般指的是压缩包文件
[root@localhost ~]# file test.tar.gz
test.tar.gz: gzip compressed data, from Unix, last modified: Sun Jul 21 15:18:43 2019
正文完