List all files and folders in a certain directory with Terminal

ALL files and ALL folders For a text file of ALL files and Folders in your Home Directory, In Terminal, enter: find ~ -print | sed -e ‘s;[^/]*/;|—>;g;s;—>|; |;g’ > ~/Desktop/Tree.txt To direct to a specific Folder, replace ~ with the Directory (i.e. find ~/Documents): find ~/Documents -print | sed -e ‘s;[^/]*/;|—>;g;s;—>|; |;g’ > ~/Desktop/Tree.txt …