ls -R: a recursive listing to output all the data

hello dear linux-fans,

how to make visible what is in the folder in a recoursively manner!`

i wish to do a ‘ls -l’ command recursively, and can’t understand the man-pages to figure it out / can’t find info.
what would be the command to do so?

  • well do i have to use this one: ls -R.

thank you for reading my post…

PS i found out this in the man-pages:
When listing the contents of a directory and all subdirectories, a recursive listing is sometimes useful. This tech-recipe describes techniques for listing files recursively.
The simplest method of performing a recursive directory listing is with the following ls command:


ls -R

ls -lR

The first is a short listing (filename only), and the second version shows a long listing (the output of ls -l, but recursive). These commands will perform the recursive listing from the current working directory. Adding a directory name to the end of the commands will start the listing in that directory. The find command performs recursive searches by default. To duplicate ls -R, use the following:… lorem ipsum lorem lorem… ] end of cit.

well - the question is- i need to have aall the content of the direcories on a screen - on one screen - output. in a maner that i can see how all the directories are filled with data!?

hope i was able to write in a concise way if not - just lemme know . i c can repost my question - and add more thougts

Not sure what you want here
Assuming current is ./

ls -R | grep ./

will show just the directories.

You also may want to see the tree command. Note you may need to install it via Yast since tree seem not to be installed by default anymore.

Hi
Use less or pipe it to a file for further inspection;


ls -lR |less

or pipe to a file

ls -lR > list.txt

less list.txt


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.1 (x86_64) Kernel 3.1.10-1.9-desktop
up 12:26, 3 users, load average: 0.06, 0.03, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

hello dear GogalThorb hello Malcom - many thanks for the quick reply!

greeat to hear from you both!!

Use less or pipe it to a file for further inspection;



ls -lR |less  or pipe to a file  ls -lR > list.txt  less list.txt

i try it out later the weekend

many many thanks

have a great weekend

by the way



linux-wyee:/home/martin # ls -lR > list.txt
ls: Zugriff auf .gvfs nicht möglich: Keine Berechtigung
ls: Öffnen von Verzeichnis ./.gvfs nicht möglich: Keine Berechtigung

which means - you have no access to gvfs - now permission

ls: we cannot open the directory /.gvfs - no permission here

what does that mean!?

On 2012-06-02 17:46, dilbertone wrote:

> what does that mean!?

What it says, that you can not read that directory. It is somewhere in what
you have read, but that directory is not included. The rest is.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

cheers & saludos Carlos

the question IS - do i NEED that Directory!?

thats the question -

if i do not need this Directory - so what !?

i

On 2012-06-02 19:46, dilbertone wrote:
>
> cheers & saludos Carlos
>
> the question IS - do i NEED that Directory!?
>
> thats the question -
>
> if i do not need this Directory - so what !?

I don’t know if /you/ need that directory. How can I? I know that /I/ need
it. >:-)

What do think you need if for? For a backup? To copy somewhere else? Then
you don’t.

No matter if you need it or not, Root can not read it, and that is final.

If you google for that particular directory, you will find many references
to it. Many people do not know what it is for. It is something gnome
creates for his virtual filesystem. Do not meddle with it.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

hello dear Carlos

many thanks for the quick answer. This is helpful. Now i know that i do not need this directory.

many thanks

greetings

On 2012-06-03 00:36, dilbertone wrote:
>
> hello dear Carlos
>
> many thanks for the quick answer. This is helpful. Now i know that i do
> not need this directory.

Welcome :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)