Operating System - HP-UX
1834163 Members
2629 Online
110064 Solutions
New Discussion

list the directory structure

 
vekatesan
New Member

list the directory structure

Hi Guys,
How to list the entire directory structure/files with the permissions in hpux box..

Thanks in advance
Venkat
11 REPLIES 11
Dennis Handly
Acclaimed Contributor

Re: list the directory structure

You could use: ll -R
Lijeesh N G_1
Respected Contributor

Re: list the directory structure

Hi,

#ll -R

or

#lsr

Note that it will list with respect to your curreent directory...

Reagrds,
LIJEESH N G
Sunny123_1
Esteemed Contributor

Re: list the directory structure

Hi

ls -lrt



Regards
Sunny
Steven Schweda
Honored Contributor

Re: list the directory structure

man ls

> ls -lrt

Note that "-r" and "-R" are not equivalent.
Welcome to UNIX.

And why "t"? Who asked for that?
Roopesh Francis_1
Trusted Contributor

Re: list the directory structure

just try

ls -R /

Thanks
Vijaya Kumar_3
Respected Contributor

Re: list the directory structure

I also use:

find . -exec ls -l {} \;
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
SoorajCleris
Honored Contributor

Re: list the directory structure

Hi Venkat ,

It is simple !!! The first command which we learn in Unix - ls :)

ls -R

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Steven Schweda
Honored Contributor

Re: list the directory structure

> [...] The first command which we learn in
> Unix - ls :)

Perhaps the first command "we" _should_ learn
is "man".

I find it a little scary that anyone would
even ask this question.
Hein van den Heuvel
Honored Contributor

Re: list the directory structure

>> I find it a little scary that anyone would
even ask this question.

What is really scary is that someone marks up HPUX and sundry as "My area(s) of expertise" and still ask that question.

So let's just assume that it the Venkat knows his stuff, but failed to communicate the real question.

Venkat, "What problem are you trying to solve" ?
When you list the directory structures and files, what are you going to do with it?
How will you need to present it or subsequently query this?
Do you need to convey 'depth' or other file attributes, besides the permissions mentioned? For example the owner is needed to make the permissions make sense.

http://docs.hp.com/en/B2355-90689/ls.1.html

Good luck!
Hein.
vekatesan
New Member

Re: list the directory structure

coool guys...at present i don't have a machine to try this, thats why i asked... actually i need this information to write some script...

just for some R&D,after succeeding that i will let u know guys...

Thanks for you all,

venkat
vekatesan
New Member

Re: list the directory structure

just for some R&D,after succeeding that i will let u know guys...

Thanks for you all,

venkat