The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 04-24-2008
joeyg's Avatar
Moderator
 

Join Date: Dec 2007
Location: Home of world champion Boston Celtics
Posts: 983
Wink using the ls command

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
Reply With Quote
Forum Sponsor
  #9  
Old 04-24-2008
Registered User
 

Join Date: Apr 2008
Posts: 6
Hi You can use this command:

ls -R > fileslist

Hope this is what you want!
Reply With Quote
  #10  
Old 04-24-2008
vbe vbe is offline
Moderator
 

Join Date: Sep 2005
Location: Switzerland
Posts: 775
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...
Reply With Quote
  #11  
Old 04-24-2008
Registered User
 

Join Date: Apr 2008
Posts: 9
Quote:
Originally Posted by joeyg View Post
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
Quote:
Originally Posted by gkalangi View Post
Hi You can use this command:

ls -R > fileslist

Hope this is what you want!
Thanks guys; this worked great. Exactly what I was looking for.
Reply With Quote
  #12  
Old 04-24-2008
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,262
Quote:
Originally Posted by vgersh99 View Post
find /path/to/starting/directory -type f > outputfile
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
Reply With Quote
  #13  
Old 05-14-2008
Registered User
 

Join Date: Apr 2008
Posts: 9
OH NO you di-iint....I don't want ads on MY forum message. Someone make me a mod so I can remove them.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0