Link to home
Start Free TrialLog in
Avatar of operation1611
operation1611

asked on

Listing file in directory by created and last modified

How to view listing of file in directory by date & time created and last modified. or maybe a script of single command line?

thanks
Avatar of slyong
slyong

$ ls -lt
or

$ ls -ltr
for reverse order
Avatar of operation1611

ASKER

this command is for last modified/access rite?...it not show the date the file was created...

does any one has the script?...because in the folder there is lot of folder. And in the folder there is a lot of files....so if got the script maybe the output can be generate to txt file.
ASKER CERTIFIED SOLUTION
Avatar of slyong
slyong

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
thank you...but the date is last modified or date created? tq
it is last modified date.
ls -altr
Will show u the file last modified