gpt4 book ai didi

Linux 文件类型

转载 作者:太空宇宙 更新时间:2023-11-04 03:54:52 25 4
gpt4 key购买 nike

我可以使用“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 驱动程序的名称是 Untitled。我正在用mac学习linux。任何帮助或链接表示赞赏。

谢谢

最佳答案

来自ls invocation - What information is listed :

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

关于Linux 文件类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25104872/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com