- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to search file from size
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
тАО02-06-2011 06:08 AM
тАО02-06-2011 06:08 AM
In HP-UX, what is the command to find with the exact same size?
For example, im having a file named file1.
$ ll file1
r--r--r--- 1 root bin 70224 Aug 27 2004 file1
I want to find other files with the same size as file1 (which is 70224).
Thanks!
Solved! Go to Solution.
- Tags:
- find
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2011 06:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2011 07:00 AM
тАО02-06-2011 07:00 AM
Re: how to search file from size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2011 07:54 AM
тАО02-06-2011 07:54 AM
Re: how to search file from size
I can't help but wonder if you are looking for a way to find hard-linked files: those that have a common inode but differ in their name.
If this is the case, use 'ls -il' to list the inode number of files in the first column of the output. Then do:
# find . -xdev -inum
Remember that inodes are only unique within a filesystem. Hence, you should add '-xdev' to the find arguments to make sure that the search doesn't cross filesystems.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2011 05:58 PM
тАО02-06-2011 05:58 PM
Re: how to search file from size
#find / -size
It will look into entire system and print the output files with defined size.
Is this search meant for the duplicate or backup file with changed names on the system?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2011 12:57 AM
тАО02-07-2011 12:57 AM
Re: how to search file from size
cd /
# du -sk * |sort -rn |more --> This will sort big files in ascending order
# find / -size +100000c -xdev -exec {} \; | more
regards,
Anoop