Solved

find command

Posted on 2006-06-16
3
290 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
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

777 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