naufal
asked on
find command
Hi,
how do we find "all" files which are most recently modified in size or made e.g in last day or last two days.
If we run a find command on root, will the system attempt to find the file in the nfs mounted partitions only? looks as it does. If so what is the switch for running ot on a local system.
Regards
how do we find "all" files which are most recently modified in size or made e.g in last day or last two days.
If we run a find command on root, will the system attempt to find the file in the nfs mounted partitions only? looks as it does. If so what is the switch for running ot on a local system.
Regards
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi,
The "find" command should work. To find files starting at root modified within the last day run:
find / -ctime 1
The find command looks in all mounted filesystems local or NFS if you search from root (/).
To search only local filesystems use the -local switch on Solaris:
find / -name "*.log" -local
The "find" command should work. To find files starting at root modified within the last day run:
find / -ctime 1
The find command looks in all mounted filesystems local or NFS if you search from root (/).
To search only local filesystems use the -local switch on Solaris:
find / -name "*.log" -local
ASKER