底下有幾種做法自己挑一個吧:
ls -R (not all versions of "ls" have -R) find . -print (should work everywhere) du -a . (shows you both the name and size)
若你要找的是特定的檔案,例如說是檔名結尾為 ".c" 者,可用
find . -name '*.c' -print