- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to check files with more then 1MB in a fil...
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
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
тАО07-17-2007 06:07 PM
тАО07-17-2007 06:07 PM
How to check files with more then 1MB in a filesystem
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2007 06:12 PM
тАО07-17-2007 06:12 PM
Re: How to check files with more then 1MB in a filesystem
find /
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2007 06:13 PM
тАО07-17-2007 06:13 PM
Re: How to check files with more then 1MB in a filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2007 06:16 PM
тАО07-17-2007 06:16 PM
Re: How to check files with more then 1MB in a filesystem
I have used ls -ld, instead of ll, because if the directory file is above 1 MB, it will list all the file iunder the directory, to avoid confusion it is better to use ls -ld.
Cheers,
Ravi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2007 08:16 PM
тАО07-17-2007 08:16 PM
Re: How to check files with more then 1MB in a filesystem
You may also wish to sort them so that the largest file comes first:
find . -size +1000000c -xdev -exec ls -ld {} \; |sort +4 -5nr
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2007 03:40 AM
тАО07-19-2007 03:40 AM
Re: How to check files with more then 1MB in a filesystem
Note: this will give you list of all files bigger than 1 MB in sorted order with Bigest file first. Listing will be showing filename and size in MB.
cheers...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2007 03:45 PM
тАО07-19-2007 03:45 PM
Re: How to check files with more then 1MB in a filesystem
These are not the droids (option) you want. ;-)
What you have is > 1024 blocks. And blocks is the useless value 512. :-(
That's why most answers used +1000000c.