Penn Engineering CETS Answers

How do I get a recursive directory listing?

One of the following may do what you want:

% ls -R or
% 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. "answers" has more information on the find command, which you should read before experimenting.

Note: For information on logging into Eniac, please see "How Do I Log Into Eniac?"

 

© Computing and Educational Technology Services cets@seas.upenn.edu 215.898.4707