![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| command to list files that are created before some date | csreenivas | SUN Solaris | 3 | 06-27-2007 06:34 PM |
| How to list files with specific created date | Draculla | Filesystems, Disks and Memory | 2 | 05-03-2007 11:45 PM |
| List files created between specific date and time | jazjit | Shell Programming and Scripting | 3 | 04-27-2007 01:19 AM |
| List Files & Folders created/modified | tipsy | Shell Programming and Scripting | 2 | 10-24-2006 01:22 PM |
| command unix to list all files created since n month ago | yacsil | Shell Programming and Scripting | 8 | 12-15-2003 01:12 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to list files Created in last 2 hrs
I wanted to know what command should I use to see the files created in last 2 hours in a given directory.
I know to see the files changed in last one day I can use this: find /admin//dump -type f -ctime -1 -print | xargs ls -lt|pg However I am not getting what should I use if I wanted tol ist all the files created in last 2 hours. Thanks.. R |
|
||||
|
Use touch to change a file data on a temp file in your directory
then use find. Code:
cat "hi " > t.tmp
# set the file time to 2 hours ago
touch -t 200405121120 t.tmp
find /admin//dump -type f -newer t.tmp -print -exec ls -lt {} \; | pg
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|