linux文件后缀符号代表的类型*/=>@|中的>是什么意思?

man ls中
ls -F选项说

 -F, --classify
               append indicator (one of */=>@|) to entries

*/=>@|这里我不知道>是什么文件

阅读 6.9k
1 个回答

如果有-F这个参数, 那么如果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.
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题