Link to home
Start Free TrialLog in
Avatar of naufal
naufalFlag for Pakistan

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
ASKER CERTIFIED SOLUTION
Avatar of tfewster
tfewster
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of naufal

ASKER

tx
Avatar of jonaslinden
jonaslinden

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