CMD tree command limit number of levels

前端 未结 6 1009
盖世英雄少女心
盖世英雄少女心 2021-02-07 04:18

How do I limit the number of levels that the tree command goes through in Windows? I need to output the results to a text file for work, but because by default the tree command

6条回答
  •  南旧
    南旧 (楼主)
    2021-02-07 05:08

    Actually, tree command in DOS does not have the level option. You can refer the manual: tree in windows.

    But, you can use the git bash(this is a tool provided by git when you installed the git on windows) or babun(it's a really good tool for windows user to use the *unix tools) so in this way, you can use the command that @Zhengquan Feng mentioned.

提交回复
热议问题