title: List of All Folders and Sub-folders
body: <p>In Linux, I want to find out all Folder/Sub-folder name and redirect to text file</p>
  
  <p>I tried  <code>ls -alR &gt; list.txt</code>, but it gives all files+folders</p>