Is this possible to do
I have directory that has several sub directories which contain files. Is there a way to print a list of the directories and the content of the sub directories in say a txt file so that i can evaluate the listing of files contained in the directories?
|
`ls -R /name/of/directory > name-of-list-file.txt`
|
Welcome to LQ.
You can use: ls -laR /path/to/directory > /path/to/log.file |
Argh! I forgot that I have aliased `ls` to `ls -lh`... :rolleyes:
Use -l for long file listing, -a to include hidden files. Do `man ls` for full details. |
All times are GMT -5. The time now is 10:41 PM. |