|
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? See reader questions & answers on this topic! - Help others by sharing your knowledge
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.
User Contributions: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 | Web FAQs | Documents | RFC Index ] Send corrections/additions to the FAQ Maintainer: tmatimar@isgtec.com (Ted Timar)
Last Update March 27 2014 @ 02:12 PM
|

Comment about this article, ask questions, or add new information about this topic: