|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Command to see all files
Hi
is there a command which can be used to get a list of all files, including all files in all subdirectories on a given volume? Thanks ![]() All My Best, Jeffrey |
|
#2
|
||||
|
||||
|
find /
__________________
~James [Not currently seeking freelance work] Like philosophy or interested in spirituality? Philosophorum. Game Dev Experts Forums Foresight Linux - Because your desktop should be cool! Linux FAQ FedoraFAQ UbuntuGuide |
|
#3
|
|||
|
|||
|
Hi, James--
Thanks ![]() That actually gave a bit too much information. It found everything not only on the main volume, but on all volumes in the /Volumes directory as well. So here's what I actually need: To see all files in a given volume "foo", along with the modification date and size of each file. Is that possible? Thanks again ![]() All My Best, Jeffrey |
|
#4
|
||||
|
||||
|
oh sorry.
if it's a partition you have mounted, find /mnt/partition. eg. for a cd drive (on my fedora system) i would do find /media/cdrom it's a wee bit more complex for an arbitrary unmounted device (/dev/blah) but we can work that if you need it. Apologies for not reading the question properly |
|
#5
|
|||
|
|||
|
Hi--
Not at all... my apologies for not asking it properly the first time ![]() Ok. I now have a bit more information. It looks like ls -R with some other options might do it as well. The situation is that I have a startup drive, and an attached firewire device which shows up in my volumes directory (which the startup drive does as well). So what's happening is that either method is displaying all the files from both volumes. So I guess what I need is a way to ask for all directories except for the /volumes directory, and display the mod. date/time and filesize -- or maybe I'm not understanding again....? Thanks again ![]() All My Best, Jeffrey Last edited by groundlevel : November 6th, 2005 at 02:11 PM. |
|
#6
|
||||
|
||||
|
ls has the -l switch to get that info
ls -Rl --ignore="/volumes/*" |
|
#7
|
|||
|
|||
|
Hi--
When I try that command, ls -Rl --ignore="/volumes/*" I get: ls: illegal option -- - Have I entered it incorrectly...? All My Best, Jeffrey |
|
#8
|
||||
|
||||
|
now i'm confused...
Code:
[root@mental-anguish proc]# ls --help | grep ignore -B, --ignore-backups do not list implied entries ending with ~ -I, --ignore=PATTERN do not list implied entries matching shell PATTERN should work you see. try ls -Rl -I "/volumes/*" Unless you used an `eye` instead of an `ell`? the first in that is an ell and the second an eye. |
|
#9
|
|||
|
|||
|
Yeh, me too
![]() Ok, that last doesn't work either: ls: illegal option -- I I believe this is due to my being on Darwin. Perhaps some option used with find would do it? All My Best, Jeffrey |
|
#10
|
||||
|
||||
|
oh, darwin uses different switches to most unixes.
i dont have a copy to play about with. Might i suggest `man ls` though? |
|
#11
|
|||
|
|||
|
Heh. tried it
![]() It's the same man unfortunately, not Darwin specific. However, it looks like I have found a partial solution to what I need: find -x / -ls Pretty much does it. The only thing I would need to add to get what I want is to have the results sorted by the modification time/date. Maybe someone knows the correct option(s) to do that? Thanks ![]() All My Best, Jeffrey Last edited by groundlevel : November 6th, 2005 at 10:13 PM. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Command to see all files |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|