[SuSE Linux] List Directory Tree
Hi, The recent discussions on grep inspired me to ask this question. How can I list the directory tree? No files within directories, just the directories. I thought some 'ls' option combination would provide this, but no-luck. I'd like to start from / and list ALL directories recursively. Any ideas? TIA, -Larry RPM Browser for Windows <A HREF="http://www.laysi.com/rpmbw/"><A HREF="http://www.laysi.com/rpmbw/</A">http://www.laysi.com/rpmbw/</A</A>> - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
On 22-Jan-99 Yates, Larry wrote:
Hi,
The recent discussions on grep inspired me to ask this question.
How can I list the directory tree? No files within directories, just the directories.
Try "ls -R" ------------------------------------------ E-Mail: Chris Martin <camst65@pitt.edu> Date: 22-Jan-99 Time: 13:57:36 ** Powered by SuSE Linux. You want it?! ** <A HREF="http://www.suse.com"><A HREF="http://www.suse.com</A">http://www.suse.com</A</A>> | <A HREF="http://www.linux.org"><A HREF="http://www.linux.org</A">http://www.linux.org</A</A>> ------------------------------------------ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Warning - this is from a 'newbie'... Just for grins I decided to try to figure this one out... There is probably a better way to do this but try... ls -R | grep ":" -- Alan Melick, NOC Engineer II, Fuse Internet Access On Fri, 22 Jan 1999, Yates, Larry wrote:
Hi,
The recent discussions on grep inspired me to ask this question.
How can I list the directory tree? No files within directories, just the directories.
I thought some 'ls' option combination would provide this, but no-luck.
I'd like to start from / and list ALL directories recursively.
Any ideas?
TIA, -Larry RPM Browser for Windows <A HREF="http://www.laysi.com/rpmbw/"><A HREF="http://www.laysi.com/rpmbw/</A">http://www.laysi.com/rpmbw/</A</A>> - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Not sure if you want 0.000000ind / -print or -lR / But one of those should do the trick. - Scott Yates, Larry wrote:
Hi,
The recent discussions on grep inspired me to ask this question.
How can I list the directory tree? No files within directories, just the directories.
I thought some 'ls' option combination would provide this, but no-luck.
I'd like to start from / and list ALL directories recursively.
Any ideas?
TIA, -Larry RPM Browser for Windows <A HREF="http://www.laysi.com/rpmbw/"><A HREF="http://www.laysi.com/rpmbw/</A">http://www.laysi.com/rpmbw/</A</A>> - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Hi, On Fri, Jan 22, 1999 at 09:47 -0800, Yates, Larry wrote:
How can I list the directory tree? No files within directories, just the directories. [...] I'd like to start from / and list ALL directories recursively.
Try `find / -type d'. Ciao, Stefan - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Yates, Larry wrote:
Hi,
The recent discussions on grep inspired me to ask this question.
How can I list the directory tree? No files within directories, just the directories.
I thought some 'ls' option combination would provide this, but no-luck.
I'd like to start from / and list ALL directories recursively.
Any ideas?
I'm a Midnight Commander enthusiast. In mc you can hit F9, go to right or left pane, and select "tree". - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
participants (6)
-
alan@fuse.net
-
camst65+@pitt.edu
-
larry.yates@compaq.com
-
sbronson@opentv.com
-
stefan.troeger@wirtschaft.tu-chemnitz.de
-
zentara@netfrog.net