- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: list files > 1 years
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 05:57 PM
11-01-2004 05:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 06:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 06:22 PM
11-01-2004 06:22 PM
Re: list files > 1 years
# find
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 06:49 PM
11-01-2004 06:49 PM
Re: list files > 1 years
how can i include ll into the command below ?
# find / -atime +20
# find / -atime +20 | xargs ls -l <<== this list out all fiels under the directory which is not desired
and how can i find the access date of a particular files ??
thks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 06:59 PM
11-01-2004 06:59 PM
Re: list files > 1 years
you can try this to include ls -l functionality:
# find / -mtime +20 -exec ls -l {} \;
and use a not-operator for the "opposite":
# find / ! -mtime +20 -exec ls -l {} \;
Tehre are spaces on either sides of !
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 07:04 PM
11-01-2004 07:04 PM
Re: list files > 1 years
No, the command is not the correct one.It lists out all files not only those being modified > 20 days
i need something like this:
# cd /tmp
# find ./* -mtime -1 | xargs ls -l
-rwxrwxrwt 1 root sys 7 Nov 2 15:35 ./test <=== this is the only file under /tmp that is last modified which is less than 1 day
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 07:30 PM
11-01-2004 07:30 PM
Re: list files > 1 years
hmmm....
then try first to make a reference file which is one day old..., e.g.:
# date
Tir. 2 Nov. 2004 09:05
now then make a reference file from "yesterday":
# touch 1101000004 ./ref_file
# ls -l ./ref_file
-rw-r--r-- 1 jxk users 0 Nov 1 00:00 ./ref_file
and list the files whose last change is newer than the reference file, e.g.:
# find . -type f -newer ./ref_file -exec ls -l {} \;
is that what you want?
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 07:46 PM
11-01-2004 07:46 PM
Re: list files > 1 years
I want to have something such as below:
i have 3 files underneath /tmp as shwon below:
-rw-rw-rw- 1 root sys 0 Nov 2 16:33 abc
Oct 1 00:00 ref_file <<=== never been access since yesterday
-rw-r----- 1 root sys 441 Nov 2 16:33 sir.cfg
when i run
# cd /tmp
# find . -atime 1
--> why i still get teh list of ref_file ? it should not ?
when access means i read the file right ? the file date from ll remained as the last editted date right ?
thks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 08:29 PM
11-01-2004 08:29 PM
Re: list files > 1 years
# find . â mtime 1
lists files that are 1 day old (not 2 days, not 3 days, not 4 days etc). One day = 24 hours, i.e. less than 24 hours will be included as well.
Try this command, which will list those older than 24 hours:_
# find . â mtime +1
regards,