bash - 什么是 ls -F (ls --classify)

标签 bash ubuntu filesystems ls

<分区>

查看the man pages for plain old ls我看到 -F

有一个标志
  -F, --classify
          append indicator (one of */=>@|) to entries

我已经用过几次了,但我只看到它在文件夹中添加了一个斜杠 / ,这与 ls -p

相同

这对其他人意味着什么 *=>@|

我正在运行带有 GNU bash 的 Ubuntu 14.04,版本 4.3.11(1)-release (x86_64-pc-linux-gnu)

最佳答案

每个符号都对应一种特定类型的文件。如果您还没有看到它们,可能是因为您没有任何该类型的文件。 ls 的手册页应该说明它们各自的含义。但是,如果您出于某种原因无法阅读您的内容,请阅读我的内容:

     -F      Display a slash (`/') immediately after each pathname that is a
         directory, an asterisk (`*') after each that is executable, an at
         sign (`@') after each symbolic link, a percent sign (`%') after
         each whiteout, an equal sign (`=') after each socket, and a
         vertical bar (`|') after each that is a FIFO.

我的似乎使用了一些你不使用的字符,而没有使用你使用的一些字符。因此,要解决其他问题,您需要阅读引用您的版本的手册页。

关于bash - 什么是 ls -F (ls --classify),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38670096/

相关文章:

vb6 - 等待文件创建超时

在 C 中创建自己的 FILE* 指针?

linux .cshrc 文件编译错误

Python2.6 回溯/Ubuntu wxPython

regex - 删除 bash 中每一行的最后一个单词

linux - CouchDB 1.3.0 数据库压缩 - 错误 grondot.couch.compact : no such file

eclipse - 在Eclipse中以本地模式调试MapReduce Hadoop。连接远程虚拟机失败

java - Java中如何观察完整文件系统的变化?

linux - 打印包含命令的变量

linux - 使用 shell 脚本从 pstree 获取指定进程名称的 pid