LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 02-22-2004, 04:37 PM   #1
kubicon
Member
 
Registered: Aug 2003
Location: Limbo
Posts: 54

Rep: Reputation: 15
recursively listing directories full paths


how can I recusively list the full path off all the files on from a directory on forward

for instance, I would like something like:

/home
/home/foo/file1
/home/foo/file2
/home/dir/log.log
/home/dir/files/file1
/home/dir/files/file2

I need the full path cause I'm making a shell script and I'm stuck


thanks
 
Old 02-22-2004, 04:40 PM   #2
Booster
Member
 
Registered: Sep 2003
Location: Ontario, Canada
Distribution: Gentoo, Suse
Posts: 59

Rep: Reputation: 15
Just do:
#find .
and it'll list everything from your present dir and subdirs

Cheers!
 
Old 02-22-2004, 04:55 PM   #3
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,372

Rep: Reputation: 46
ls -la ./* should aslo recurse through directories, do ls -lad ./* to do just directories not files
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using chmod to recursively change directories / files [GOD]Anck Linux - Software 6 11-10-2008 07:16 PM
Remove directories recursively with same name cboyd Linux - Newbie 5 01-14-2007 10:48 PM
Can ls recursively list only directories? Vosper Linux - General 3 07-16-2005 04:57 AM
Recursively listing files over FTP? overbored Linux - Software 4 10-14-2004 01:12 PM
tar, excluding directories recursively towlie Linux - Newbie 3 06-17-2004 01:32 PM


All times are GMT -5. The time now is 09:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration