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
operation1611Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
slyongConnect With a Mentor Commented:
ls -t is the last modified date.  You can use a redirect into a txt file:

$ ls -lrtR > list.txt

P/S: R is for recursive
0
 
slyongCommented:
$ ls -lt
or

$ ls -ltr
for reverse order
0
 
operation1611Author Commented:
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.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
operation1611Author Commented:
thank you...but the date is last modified or date created? tq
0
 
slyongCommented:
it is last modified date.
0
 
ibu1Commented:
ls -altr
Will show u the file last modified
0
 
ibu1Commented:
For more help refer this link
http://www.computerhope.com/unix/uls.htm
0
All Courses

From novice to tech pro — start learning today.