Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux文件类型_Linux_File_Directory - Fatal编程技术网

Linux文件类型

Linux文件类型,linux,file,directory,Linux,File,Directory,我可以使用“cd/volumes”访问所有装载的卷,并且我命令“ls-l”。 这包括: lrwxr-xr-x 1 root admin 1 Aug 3 20:05 Macintosh HD -> / drwxrwxrwx@ 1 username staff 16384 Aug 2 16:33 Untitled -rwxr-xr-x 1 username admin 0 Jan 23 2014 bin 我只是想知道为什么我的usb驱动器

我可以使用“cd/volumes”访问所有装载的卷,并且我命令“ls-l”。 这包括:

lrwxr-xr-x  1 root          admin      1 Aug  3 20:05 Macintosh HD -> /
drwxrwxrwx@ 1 username  staff  16384 Aug  2 16:33 Untitled
-rwxr-xr-x  1 username  admin      0 Jan 23  2014 bin
我只是想知道为什么我的usb驱动器的文件类型是“d”。我想应该是“b”或“c”。 我的usb驱动程序的名字没有名字。 我正在用mac学习linux。 任何帮助或链接都将不胜感激

谢谢,

来自

The file type is one of the following characters: 

‘-’
    regular file
‘b’
    block special file
‘c’
    character special file
‘C’
    high performance (“contiguous data”) file
‘d’
    directory
‘D’
    door (Solaris 2.5 and up)
‘l’
    symbolic link
‘M’
    off-line (“migrated”) file (Cray DMF)
‘n’
    network special file (HP-UX)
‘p’
    FIFO (named pipe)
‘P’
    port (Solaris 10 and up)
‘s’
    socket
‘?’
    some other file type v

你为什么认为应该是
b
c
d
是directory的缩写,文件系统作为目录安装在Unix/Linux World中。我认为某些硬件将使用“b”或“c”来连接mac。我只是很困惑。。。那么“b”或“c”是用来做什么的呢?如果我连接打印机,它应该是“b”或“c”?