Solved

find command

Posted on 2006-06-16
3
288 Views
Last Modified: 2013-12-27
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
0
Comment
Question by:naufal
3 Comments
 
LVL 20

Accepted Solution

by:
tfewster earned 50 total points
Comment Utility
Find options:
-mtime -3    (modified less than 3 days ago)
-local or -fstype ufs
0
 

Author Comment

by:naufal
Comment Utility
tx
0
 

Expert Comment

by:jonaslinden
Comment Utility
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
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now