开发者社区> 问答> 正文

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

man ls中
ls -F选项说

-F, --classify

           append indicator (one of */=>@|) to entries

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

展开
收起
a123456678 2016-06-20 14:49:53 3344 0
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.
    2019-07-17 19:44:07
    赞同 展开评论 打赏
问答分类:
问答地址:
相关产品:
问答排行榜
最热
最新

相关电子书

更多
Alibaba Cloud Linux 3 发布 立即下载
ECS系统指南之Linux系统诊断 立即下载
ECS运维指南 之 Linux系统诊断 立即下载