[HPADM] Tanks for find help

From: BAKHSHESH Kazem (BAKHSHEK@ESSILOR.fr)
Date: Thu Jul 18 2002 - 04:49:03 EDT


Hi,

Thanks to Eef Hartman for his explication about find.

Here my question:
How to find the file which have the size bigger than 2 Go.

Here the solution

First you have to calculate 2 GB in "512-byte blocks" (2 * 1024 * 1024 * 2 =
4194304). Then use the command:
find <dirlist> -size +4194304
(the + means: larger then this size, value is in 512-byte blocks to prevent
integer overflow).

Example, when /home is a separate file system, to find all "large files" in
it:
find /home -size +4194304

PS: by default find WILL cross mount points, so any file systems mounted
UNDER
the given dir (or dirs) will be searched too. Use the option "-xdev" to
prevent
this if you don't want that to happen.

Cordialement(Best regards)
Kazem Bakhshesh(administrateur Système:HP-UX)
E-Mail : bakhshek@essilor.fr
Tel : 01.48.98.73.09

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:16 EDT