Solved

find command

Posted on 2006-06-16
3
294 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 21

Accepted Solution

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

Author Comment

by:naufal
ID: 16923027
tx
0
 

Expert Comment

by:jonaslinden
ID: 16923077
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

635 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