我希望在我的项目文件夹中清楚地了解我的文件 . 但我不想看到子文件夹的内容 . 我正在做 ls -R 以便以时髦的方式获取文件,但它显示所有文件 . 例如,我在每个Client文件夹 see below 中都有节点模块 . 这是我的文件系统:

WebstormProjects
|--Porject1
|   |--Client
|   |  |--node_modules
|   |  |--etc...
|   |--Server
|--Project2
|   |--Client
|   |--Server

第二个文件也一样 . 当我点击 ls -R 时,它不仅向我显示了我想要查看Client Server或其他内容的第一级文件,而且还显示了其中的所有内容,8级别和其他内容 .

我甚至尝试过 ls -R -1 ,但它唯一能做的就是将它们放在同一列中 . -maxdepth -1-depth 1 不起作用 .

What is the correct way to do it with ls? I do not want to use find or something else. I want a command to display my current directory in a somewhat structured way, like the one above, a filesystem of sorts but in the terminal.

如果您知道其他任何命令,请添加 Using Linux Ubuntu 18.04, with zsh . 谢谢!!