- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Finding files larger than 200 MB
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2000 12:13 PM
тАО08-14-2000 12:13 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2000 12:14 PM
тАО08-14-2000 12:14 PM
Re: Finding files larger than 200 MB
# find / -size +200000000c -print
to list the file paths or:
# find / -size +200000000c -exec ls -l {} \;
cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2000 12:18 PM
тАО08-14-2000 12:18 PM
Re: Finding files larger than 200 MB
find / -size +100000 -print
Note that the above looks for block size (so 2000 blk*512 byte=1mb) the above if I did the math right would be for 50mb; but you may want to check..
If you want to key by mb than:
find /file_sys -size +50000000c -print
For auditing purposes you could send the output to a file by changing -print to >output.file
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2000 12:20 PM
тАО08-14-2000 12:20 PM
Re: Finding files larger than 200 MB
You all are quick and awesome! Thanks for the help. Keep all the new fresh ideas coming, too, because it makes for some quick and easy HP-UX Admin training for me.
My Hat's off to ya'll!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2000 12:22 PM
тАО08-14-2000 12:22 PM
Re: Finding files larger than 200 MB
find $DIR -xdev -size +$VARc -exec ll -lt {} ;
where:
$DIR is the directory to start search
$VAR is the size to declare.
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2000 12:24 PM
тАО08-14-2000 12:24 PM
SolutionThe secret is du, or more specifically, du -kx /starting_point. Since this will just traverse the directories in no particular order, use sort to arrange the sizes as in:
du -kx /start_point | sort -rn
You may want to pipe the output into a file or email message. Run this command on each mountpoint.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2000 12:26 PM
тАО08-14-2000 12:26 PM
Re: Finding files larger than 200 MB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2000 12:27 PM
тАО08-14-2000 12:27 PM
Re: Finding files larger than 200 MB
Regards,
John