command to list all the folders and sub-folders in a directory in linux
<p>I would like to check all the folders and sub-folders in a directory. </p>

<p><code>ls -R</code> works fine, but it lists all the files in each folder and sub-folder. As a result I can't see what I want to check unless <code>ls -R |less</code>.</p>

<p><code>ls -R | less</code> is also not a good choice because I have thousands and thousands of files in each sub-folder.</p>