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
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.