linux - 使用 'ls -F'时不同指标的含义

标签 linux bash shell

<分区>

我目前正在研究 Bash shell 并遇到命令 ls -F。我知道它的 ls 功能是将指示器附加到项目列表中,以便区分不同的文件类型。我知道 / 附加到目录, * 附加到可执行文件。但是我已经查看了 ls 命令的手册页,但找不到有关指标 =>@| 的任何信息。

谁能告诉我他们代表什么?如果能在需要时告诉我在哪里可以找到这类信息就更好了。

最佳答案

尝试 info ls,在“列出的信息”下:

‘-F’
‘--classify’
‘--indicator-style=classify’
Append a character to each file name indicating the file type.
     Also, for regular files that are executable, append ‘*’.  The file
     type indicators are ‘/’ for directories, ‘@’ for symbolic links,
     ‘|’ for FIFOs, ‘=’ for sockets, ‘>’ for doors, and nothing for
     regular files.  Do not follow symbolic links listed on the command
     line unless the ‘--dereference-command-line’ (‘-H’),
     ‘--dereference’ (‘-L’), or
     ‘--dereference-command-line-symlink-to-dir’ options are specified.

关于linux - 使用 'ls -F'时不同指标的含义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44380114/

相关文章:

linux - 设置 bash shell 或命令提示符以运行 Python 项目

linux - 从 bash 脚本返回值

python - 如何将Python包从旧版本安装到新版本?

php - 从 php 执行 bash 脚本来执行 jar

php - 来自 BASH 的 Tcpdump

c - (V4L2 相关)这两行是做什么的?

bash——在单个流水线阶段设置多个变量

bash - 在 MacOS 中使 ZSH 默认 Shell

python - SNMP V3 和 Perl

linux - 在 shell 中并行运行多个命令并将其保存在文件中