Link to home
Start Free TrialLog in
Avatar of seis
seisFlag for United States of America

asked on

AIX directory listing output to a file.

I need to get a listing of a directory structure with dates and file sizes output to a file to use as a comparison between a tape backup and restore. Is there a quick way to do a ls -ltr and tree down all the sub directories and output it to a file? Thanks!
ASKER CERTIFIED SOLUTION
Avatar of nixfreak
nixfreak

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of seis

ASKER

Thanks! I split the points since I needed that "R". I also needed the . files so I used this as my final command:> ls -Raltr > list.txt
Hi seis,

This question is more "general unix" than AIX/Solaris specific.

Just curious, but did you mean to ask the question in the Solaris forum and entitle it as if it were AIX?


Kent
Avatar of seis

ASKER

Since it was a general UNIX question but on a AIX box I should have stopped with the two areas but I figured I would check up to the 3 area it would allow. I have a few Solaris here so I checked that one too...


   :)