[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
    Search the FAQ Archives

Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Single Page

Top Document: Unix - Frequently Asked Questions (2/7) [Frequent posting]
Previous Document: How do I remove a file with funny characters in the filename ?
Next Document: How do I get the current directory into my prompt?


How do I get a recursive directory listing?



2.3)  How do I get a recursive directory listing?

      One of the following may do what you want:

        ls -R                   (not all versions of "ls" have -R)
        find . -print           (should work everywhere)
        du -a .                 (shows you both the name and size)

      If you're looking for a wildcard pattern that will match all ".c"
      files in this directory and below, you won't find one, but you
      can use

        % some-command `find . -name '*.c' -print`

      "find" is a powerful program.  Learn about it.



Top Document: Unix - Frequently Asked Questions (2/7) [Frequent posting]
Previous Document: How do I remove a file with funny characters in the filename ?
Next Document: How do I get the current directory into my prompt?

Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Single Page


[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
tmatimar@isgtec.com (Ted Timar)

Last Update October 12 2008 @ 00:13 AM

© 2008 FAQS.ORG. All rights reserved.