08-14-2007
Finding files which are modified few mins ago
Hi All,
I have a requirement to find out the files which are modified in the last 10 minutes.
I tried the find command with -amin and -mmin options, but its not working on my AIX server.
Can anyone of you could help me.
Thanks in advance for your help.
Raju
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Last week I was using the command:
' find /directory -mtime -2 -print' and it showed all the files modified within that period. However, now it only displays the directories and not the files modified. The only thing that changed is that I was granted access to some files.
Thanks (2 Replies)
Discussion started by: rhayabusa
2 Replies
2. Shell Programming and Scripting
I need to find out the last modified time for the files which are older than 6 months. If I use ls -l, the files which are older than 6 months, I am just getting the day, month and year instead of exact time. I am using Korn shell, and SUN OS.
Thanks in Advance,
Kiran (3 Replies)
Discussion started by: kumariak
3 Replies
3. Solaris
Hi ,
I am trying to find out the List of files modified or added aftter installation of any component on SUN solaris box .
But i am not able to do it using ls or find command .
Can somebody help me out ?
Thanks
Sanjay Gupta (2 Replies)
Discussion started by: sanajyg_mnit
2 Replies
4. UNIX for Dummies Questions & Answers
hi,
I need to find all the modified files before 60 minutes in a folder.
Is that possible to find using mtime in minutes?
Suggestions please.
Thanks for looking into it...
Geetha (8 Replies)
Discussion started by: iamgeethuj
8 Replies
5. Shell Programming and Scripting
Hi guys,
Im trying to subtract time in ksh script. i.e. basically im querying a database and i want to get the time 10mins before hand..(from)
in ksh
CurrMin=$(date "+%M")
from=`expr $CurrMin - 10`
to=$CurrMin
however if i run this i say at 2 or 3 mins past the hour, i.e.... (7 Replies)
Discussion started by: k00061804
7 Replies
6. UNIX for Advanced & Expert Users
Hi
I trying to get 5 mins ago time using below command
echo `date +%R -d "1 min ago"`
but this is giving only current time. Please help (6 Replies)
Discussion started by: cka
6 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Here is the question:
Make a list of files in your home directory that were changed less that 10 hours ago,... (3 Replies)
Discussion started by: fight4love
3 Replies
8. UNIX for Dummies Questions & Answers
Version Info
+++++++++++++++
RHEL 5.4
Since ls command lists file sizes in Bytes which can be long I use du command like below.
I have run the du command for the below files as shown below.
But I want pipe this output to ls command just to see the modified timestamp for these files. ... (7 Replies)
Discussion started by: kraljic
7 Replies
9. Shell Programming and Scripting
Hello,
I have a list of files, an example below:
-rw-r--r-- 1 smf_oper esg 910773 Jul 6 12:52 am1slc02_ACS_201607061242571_20346.cdr
-rw-r--r-- 1 smf_oper esg 995838 Jul 6 12:52 am1slc01_ACS_201607061243125_19895.cdr
-rw-r--r-- 1 smf_oper esg 557235 Jul 6 12:52... (5 Replies)
Discussion started by: nms
5 Replies
10. UNIX for Beginners Questions & Answers
How to find a file that's modified more than 2 days ago but was modified less than 5 days ago by use of any Linux utility ? (4 Replies)
Discussion started by: abdulbadii
4 Replies
ff_vxfs(1M) ff_vxfs(1M)
NAME
ff_vxfs: ff - fast find: list file names and statistics for a VxFS file system
SYNOPSIS
num] num] inode-list] num] file] prefix] special...
DESCRIPTION
reads the inode list and directories of each special file, assuming it to be a VxFS file system, and prints inode data for files that match
the selection criteria. Output consists of the pathname for each saved inode, plus any other file information requested using the print
options below. Output fields are positional. The output is produced in inode order; fields are separated by tabs. The default line pro-
duced by is:
pathname inumber
The pathname is preceded by a dot unless you specify the generic option. The maximum information displays is:
pathname inumber size owner
The num parameter in the options descriptions is a decimal number, where means more than num days, means less than num days, and num means
exactly num days. A day is defined as a 24-hour period.
prints summary information to standard error output in addition to the report sent to standard output.
Options
recognizes the following options:
Select a file if the inode has been accessed in
num days.
Select a file if the inode has been changed in
num days.
Specify the VxFS file system type.
Generate names for any inodes specified in the
inode-list.
Do not display the inode number after each pathname.
Generate a list of all pathnames for files with more than one link.
Select a file associated with the inode if it has been modified in
num days.
Select a file associated with an inode
if it has been modified more recently than the specified file.
Add the specified
prefix to each pathname. The default prefix is dot
Print only special files and files with set-user-ID mode
(VxFS-specific option).
Write the file size, in bytes, after each pathname.
Write the owner's login name after each pathname.
Echo the completed command line, but performs no other action.
The command line is generated by incorporating the user specified options and other information derived from This
option allows the user to verify the command line.
Operands
recognizes the following operand:
special Name of a VxFS file system.
EXAMPLES
List the pathnames and inumbers of all files in the file system
Same as above, but suppress the printing of inumbers:
List files on the same file system that have been modified in the last two days displaying the pathname, inumber, and owner's user name
List all files on the same file system, including the pathname and inumber of each file, that were last accessed more than 30 days ago
Find all pathnames associated with inodes and
Execute the command on a VxFS file system
FILES
Static information about the file systems.
SEE ALSO
find(1), ff(1M), ncheck_vxfs(1M), fstab(4).
ff_vxfs(1M)