我希望你做得好。Linux目录包含一些系统文件,通常很难检测到Linux是否启用了颜色编码,或者没有文件的扩展名/后缀。我们使用ls -l,ls -lah命令查看文件类型和其他属性。输出如下所示
最小二乘法
-rwxrwxrwx它是一个文件(-)
它是一个目录(d)
(l)代表什么?
我想知道我们可以在Linux中拥有的所有类型的文件(基于-,d,L,如果更多的话),以及我们用来识别它们的字符列表。
示例
D代表目录。
L代表什么?
发布于 2020-12-19 13:44:12
-l代表符号链接。您可以在终端中看到所有字母在核心操作手册或info ls中所表示的内容:
‘-’
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 发布于 2020-12-19 13:38:41
l意味着它是一个符号链接,ls还应该显示链接指向的位置:
$ ls -l link_to_a
lrwxrwxrwx. 1 vtrefny vtrefny 1 19. pro 14.39 link_to_a -> a其他可能的文件类型包括:
- --文件d --目录c --字符装置b -块装置p --管l --符号链接https://unix.stackexchange.com/questions/625271
复制相似问题