小编sky*_*sea的帖子

如何在 Linux 中确定文件类型?

我正在编辑 LS_COLORS 环境变量。dircolors列出不同文件类型的默认颜色。文件类型表示如下:

bd = (BLOCK, BLK)   Block device (buffered) special file
cd = (CHAR, CHR)    Character device (unbuffered) special file
di = (DIR)  Directory
do = (DOOR) [Door][1]
ex = (EXEC) Executable file (ie. has 'x' set in permissions)
fi = (FILE) Normal file
ln = (SYMLINK, LINK, LNK)   Symbolic link. If you set this to ‘target’ instead of a numerical value, the color is as for the file pointed to.
mi = (MISSING)  Non-existent file pointed …
Run Code Online (Sandbox Code Playgroud)

configuration kubuntu ls

4
推荐指数
1
解决办法
636
查看次数

标签 统计

configuration ×1

kubuntu ×1

ls ×1