LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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
 
Thread Tools
Old 02-22-2004, 04:37 PM   #1
kubicon
Member
 
Registered: Aug 2003
Location: Limbo
Posts: 54
Thanked: 0
recursively listing directories full paths


[Log in to get rid of this advertisement]
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
kubicon is offline     Reply With Quote
Old 02-22-2004, 04:40 PM   #2
Booster
Member
 
Registered: Sep 2003
Location: Ontario, Canada
Distribution: Gentoo, Suse
Posts: 59
Thanked: 0
Just do:
#find .
and it'll list everything from your present dir and subdirs

Cheers!
Booster is offline     Reply With Quote
Old 02-22-2004, 04:55 PM   #3
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo on core2duo, AMD64, Pentium4 (x1) , Pentium M, Pentium 3 (5 pc's)
Posts: 1,354
Thanked: 0
ls -la ./* should aslo recurse through directories, do ls -lad ./* to do just directories not files
exodist is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 08:12 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration