- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- command to list all directories and files inside i...
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
Forums
Discussions
Discussions
Discussions
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
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-06-2001 05:19 AM
07-06-2001 05:19 AM
Hope some guro could help me with my problem.
I need the list for control total checking
when we migration to another storage..
I'll be comparing the list againts the directories and files after I have restored my backup to the new storage..
thanks in advance.
Jasper
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2001 05:22 AM
07-06-2001 05:22 AM
Re: command to list all directories and files inside it including sizes
it is quite long, but shows all subdirectories and files..
Tommy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2001 05:32 AM
07-06-2001 05:32 AM
Re: command to list all directories and files inside it including sizes
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2001 05:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2001 06:15 AM
07-06-2001 06:15 AM
Re: command to list all directories and files inside it including sizes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2001 06:20 AM
07-06-2001 06:20 AM
Re: command to list all directories and files inside it including sizes
would gives each entry filewise in the current and
sub directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2001 06:50 AM
07-06-2001 06:50 AM
Re: command to list all directories and files inside it including sizes
Thanks, but how am I going to compare these with my restored data...
Any command or script that you recommend to ensure that my checking is 100% reliable...
please advise.
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2001 09:47 AM
07-06-2001 09:47 AM
Re: command to list all directories and files inside it including sizes
cksum. Just checking the size isn't good enough.
Use find to run cksum on all files in dir1 and dir2:
cd dir1; find . -type f -exec cksum {} \; | sort -k3 > /tmp/log1
cd dir2; find . -type f -exec cksum {} \; | sort -k3 > /tmp/log2
Then use diff, sdiff,cmp, etc. to compare log1 and log2.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2001 10:04 AM
07-06-2001 10:04 AM
Re: command to list all directories and files inside it including sizes
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2001 04:17 PM
07-06-2001 04:17 PM
Re: command to list all directories and files inside it including sizes
Gregory's approach is the correct one.
First, trying to compare the size of directories (from 'ls' or 'du') is futile. Blocks once allocated to a directory for file inodes are not deallocated when the file is removed. Thus, it is very common for a directory's size to shrink if it is recreated and its files reloaded.
When "sparse" files are copied, the space they occupy is null-filled. Comparing the original file with its copy with 'ls' will show different sizes. In fact, this is one way to detect the presence of a sparse file. Comparing the checksums of the two files will yield the same values, regardless of "sparseness".
A very good discussion of sparse files can be found in a recent post in the comments by Bill Hassell:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xcfdcf9beca68d511abcd0090277a778c,00.html
...JRF...