Command to list all files

Hi

Is there a command(s) which can be used to get a list of all files, including all files in all subdirectories on a given volume?

Thanks :slight_smile:

All My Best,
Jeffrey

You will need read permission on all of the directories so you may need to do this as root. First "cd mountpoint" then use the find command. So for /usr:
cd /usr
find . -print

Also there is a -R option to ls so:
ls -lR
is another approach.

Try this
#ls -ltR

You could try

ls -1R

or

find /path/to/search -name '*.*'

Hi--

Thanks all :slight_smile:

Ok. It looks like I need a more specific control over ls or find. These seem to be finding not only all the files on the volume I want, but also, since the volumes directory exists on the volume, all files on *all* the volumes.

Is there a way to exclude any files in the volumes directory, and, to also list the modification time and date and size of each file found?

Thanks again :slight_smile:

All My Best,
Jeffrey

What os? Do "uname -a" to find out.

Darwin xxx 8.3.0 Darwin Kernel Version 8.3.0: Mon Oct 3 20:04:04 PDT 2005; root:xnu-792.6.22.obj~2/RELEASE_PPC Power Macintosh powerpc