I am looking for a command that will write the names of all directories, subdirectories and file names to a text file.
directory1 |_subdirectory1 | |_filename1.mp4 |_subdirectory2 | |_filename2.txt | |_filename3.jpg | directory2 | ...
So the text file will only just show what the directory, subdirectories and file names are. The lines dont have to exist but it graphically gives a better view. Not sure if that part is possible or not.
tree DirName | tee file.txt,
tree DirName > file.txtor
tree DirName -o file.txt?