![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#8
|
||||
|
||||
|
ls -l -R >mylogfile
This will recursively (hence the -R) list files starting where you currently are. It will send the result to a file called mylogfile |
| Forum Sponsor | ||
|
|
|
#9
|
|||
|
|||
|
Hi You can use this command:
ls -R > fileslist Hope this is what you want! |
|
#10
|
|||
|
|||
|
Watch the power of find:
go the the directory you want to list, and type: find . -print|more And see the output, if its what you want, just redirect it to a file... |
|
#11
|
|||
|
|||
|
Quote:
|
|
#12
|
|||
|
|||
|
You have to specify some action for "find". Many modern "find"s (including the AIX v5.3 i'm working on) imply "-print" if nothing else is specified, but that is only silently tolerating faulty input. All of the following lines would work regardless of the "find" in question being a "classical" (unassuming) or a "modern" one:
find /path/to/starting/directory -print > outputfile find /path/to/starting/directory -ls > outputfile find /path/to/starting/directory -exec ls -l {} \; > outputfile etc. bakunin |
|
#13
|
|||
|
|||
|
OH NO you di-iint....I don't want ads on MY forum message. Someone make me a mod so I can remove them.
|
|||
| Google The UNIX and Linux Forums |