【问题标题】:What's the Windows cmd line equivalent of "ls -a"什么是 Windows 命令行等效于 \"ls -a\"
【发布时间】:2022-08-02 20:18:52
【问题描述】:

我希望命令 DIR 显示目录上的所有文件(包括隐藏文件)。

我怎么做?

我试过了:

dir ./d
dir ./a
dir /ad
dir \\h

...以及这些的许多变体。

有什么帮助吗?

谢谢

    标签: windows cmd command-line directory ls


    【解决方案1】:

    尝试以下操作:

    dir /s /b /o:gn

    /s - displays all files in the specific directory + subdirectories.

    /b - strips heading information and summary from the output.

    /o - sort the files in the list, followed by :gn - G排序第一个文件夹,然后是文件。n将它们按字母顺序排列。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-10-16
      • 2016-10-02
      • 2013-05-07
      • 2018-12-01
      • 2014-02-09
      • 1970-01-01
      • 1970-01-01
      • 2016-01-26
      相关资源
      最近更新 更多