【问题标题】:Is there a way to only ouput the long list of a directory itself not its contents有没有办法只输出目录本身的长列表而不是它的内容
【发布时间】:2021-10-26 11:14:24
【问题描述】:

有没有办法只输出目录本身的长列表而不是其内容。

ls -l 目录以列表形式输出内容

ls -l filename 输出文件本身

【问题讨论】:

  • 您是否省略了文件名? ls -l
  • 您是否阅读过ls(1) 的手册页或尝试过/bin/ls --help

标签: linux command-line-interface


【解决方案1】:

ls -d directory_name 应该给你你想要的。 当然,它可以与-l 或其他开关组合使用。

【讨论】:

    猜你喜欢
    • 2011-01-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-08
    相关资源
    最近更新 更多