Solved

Listing file in directory by created and last modified

Posted on 2006-06-21
7
234 Views
Last Modified: 2013-12-16
How to view listing of file in directory by date & time created and last modified. or maybe a script of single command line?

thanks
0
Comment
Question by:operation1611
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 24

Expert Comment

by:slyong
ID: 16957195
$ ls -lt
or

$ ls -ltr
for reverse order
0
 

Author Comment

by:operation1611
ID: 16957219
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
 
LVL 24

Accepted Solution

by:
slyong earned 100 total points
ID: 16957237
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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

Author Comment

by:operation1611
ID: 16957346
thank you...but the date is last modified or date created? tq
0
 
LVL 24

Expert Comment

by:slyong
ID: 16957719
it is last modified date.
0
 
LVL 12

Expert Comment

by:ibu1
ID: 17113612
ls -altr
Will show u the file last modified
0
 
LVL 12

Expert Comment

by:ibu1
ID: 17113619
For more help refer this link
http://www.computerhope.com/unix/uls.htm
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question