How to get the list of all the files and folders in the root dir including sub-folders and their files.
This will work if you have changed into the root dir. Otherwise use `ls -R /`.
Ewan Todd
2009-11-16 14:47:49
list would be quickly populated with ls -R . You can opt for paging with [ls -R | more] if you are you specifically looking for something..type q to quit
Learner
2009-11-16 14:59:18
A:
use find command eg
$ find /path -print
or if you have tree installed
$ tree /path
ghostdog74
2009-11-16 15:58:42
+1
A:
man find
In all seriousness though,
find / -maxdepth 2
That should show you the root directory, folders in /, and the contents of those folders. If you want the subdirectories of the subdirectories, use -maxdepth 3, and so on.
char
2009-11-16 22:56:17