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
Try to download WSL in your Windows system.
In your command prompt:
bash
Then you can use Linux commands:
tree -L x(the layer)