Operating System - HP-UX
1753781 Members
7752 Online
108799 Solutions
New Discussion юеВ

Re: A total list of all my directories and files ....

 
SOLVED
Go to solution
Manuales
Super Advisor

A total list of all my directories and files ....

Hi, how can i get a total list of my files and directories under this format:
(please see the name of the directory or file, it contains "/" full path.

drwxrwxrwt 57 root root 434176 Feb 12 20:23 /tmp
drwx------ 9 root sys 8192 Feb 12 18:01 /root
drwx------ 9 root sys 8192 Feb 12 18:01 /root/directories

if i run $ ls -lRatd /* i only get the information in first level ..i need ALL i have in my server .. thanks in advance.
8 REPLIES 8
Wouter Jagers
Honored Contributor
Solution

Re: A total list of all my directories and files ....

hi,

try without the d ? is that what you need ?

cheers
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
Manuales
Super Advisor

Re: A total list of all my directories and files ....

no,it does not work ..

i need this output of all files and directories into the server:
drwx------ 9 root sys 8192 Feb 12 18:01 /root

see the last filed, it contains "/" ...
thanks.

Wouter Jagers
Honored Contributor

Re: A total list of all my directories and files ....

# find / -exec ls -l {} \;
an engineer's aim in a discussion is not to persuade, but to clarify.
Manuales
Super Advisor

Re: A total list of all my directories and files ....

let me try .. hold on ...
Manuales
Super Advisor

Re: A total list of all my directories and files ....

no, it did not work, it woks in some lines ..
some lines do not contain the full path and other yes ....

i need all files and directories contain full path in thelast field after running "ls -l" for ALL the files under "/"
Wouter Jagers
Honored Contributor

Re: A total list of all my directories and files ....

myes, sorry, that will be the plain -l.

try and add a d ?

# find / -exec ls -ld {} \;
an engineer's aim in a discussion is not to persuade, but to clarify.
Manuales
Super Advisor

Re: A total list of all my directories and files ....

let me try again ...
Manuales
Super Advisor

Re: A total list of all my directories and files ....

It worked !! thank you so much ... :0)