Friday, September 16, 2011

How to get all the file names in a directory tree in Linux?

In the terminal type...

$ ls -R1

R = list recursively
1 = list the names one after other horizontally, excluding file meta data

Output can be redirected to a file...

$ ls -R1 > output.file

No comments: