[root@localhost ~]# ls -l /etc/passwd
-rw-r--r--. 1 root root 2262 Oct 26 15:02 /etc/passwd
[root@localhost ~]# file /etc/passwd
/etc/passwd: ASCII text # 普通文本文件
[root@localhost ~]# ls -l /etc -d
drwxr-xr-x. 138 root root 8192 Oct 30 09:39 /etc
[root@localhost ~]# file /etc
/etc: directory # 目录文件
[root@localhost ~]# ls -l /dev/sda
brw-rw----. 1 root disk 8, 0 Oct 26 14:08 /dev/sda
[root@localhost ~]# file /dev/sda
/dev/sda: block special # 块文件
[root@localhost ~]# ls -l /dev/tty1
crw--w----. 1 root tty 4, 1 Oct 26 14:08 /dev/tty1
[root@localhost ~]# file /dev/tty1
/dev/tty1: character special # 字符文件
[root@localhost ~]# mkfifo /tmp/fifo
[root@localhost ~]# ls -l /tmp/fifo
prw-r--r--. 1 root root 0 Oct 30 09:41 /tmp/fifo
[root@localhost ~]# file /tmp/fifo
/tmp/fifo: fifo (named pipe) # 管道文件