LinuxQuestions.org
Visit Jeremy's Blog.
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 12-16-2008, 10:47 PM   #1
nyle
Member
 
Registered: Feb 2008
Location: Atlanta
Distribution: Ubuntu 9.10
Posts: 42

Rep: Reputation: 17
How to list all files recursively, in a non-broken list?


I want to get a list of all the files in a directory and all subdirectories. The best I can come up ("ls -lR") with results in:

Quote:
./xinetd.d:
total 8
-rw-r--r-- 1 root root 317 2008-04-11 10:51 rsync
-rw-r--r-- 1 root root 337 2008-06-22 17:04 vmware-authd

./xml:
total 4
-rw-r--r-- 1 root root 1010 2007-10-09 06:22 catalog
but I don't want the output to be broken down by directory; I want all the files to be listed more like:

Quote:
crw-rw---- 1 root tty 7, 7 2008-12-16 19:32 vcs7
crw-rw---- 1 root tty 7, 128 2008-12-16 19:31 vcsa
lrwxrwxrwx 1 root root 4 2008-12-16 19:31 vcsa0 -> vcsa
crw-rw---- 1 root tty 7, 129 2008-12-16 19:31 vcsa1
crw-rw---- 1 root tty 7, 140 2008-12-16 19:31 vcsa12
crw-rw---- 1 root tty 7, 130 2008-12-16 19:32 vcsa2
crw-rw---- 1 root tty 7, 131 2008-12-16 19:32 vcsa3
crw-rw---- 1 root tty 7, 132 2008-12-16 19:32 vcsa4
crw-rw---- 1 root tty 7, 133 2008-12-16 19:32 vcsa5
crw-rw---- 1 root tty 7, 134 2008-12-16 19:32 vcsa6
crw-rw---- 1 root tty 7, 135 2008-12-16 19:32 vcsa7
The end goal here is to get a list of files that I can sort by filesize.

Is this possible? Thanks
 
Old 12-16-2008, 10:52 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,240

Rep: Reputation: 121Reputation: 121
Try using the "find" command.
 
  


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
recursively list files and dirs based on permission sneakyimp Linux - Software 2 10-16-2007 06:37 PM
bash: list recursively directories only kpachopoulos Programming 1 06-18-2007 02:00 AM
list recursively files with for xeon123 Programming 6 04-04-2007 03:38 PM
List all files and recursively open directories. unreal128 Linux - General 2 07-16-2005 02:06 PM
Can ls recursively list only directories? Vosper Linux - General 3 07-16-2005 03:57 AM


All times are GMT -5. The time now is 05:18 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration