- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HPUX: Comparing File Systems "cmp" and "diff" com...
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-01-2002 06:11 AM
тАО08-01-2002 06:11 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 06:15 AM
тАО08-01-2002 06:15 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 06:16 AM
тАО08-01-2002 06:16 AM
Re: HPUX: Comparing File Systems "cmp" and "diff" commands
You can do a ll of both old and new dirs and redirect them into different files. from there you can issue the diff command on those files.
Yes, the cp -pR does copy hidden files
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 06:19 AM
тАО08-01-2002 06:19 AM
Re: HPUX: Comparing File Systems "cmp" and "diff" commands
If you can use the Mirror option, that will be the best. You don't need to worry about any of these things in that case.
You can use diff, cmp etc to compare, also check the file system space with du -k command. I would use a find with cpio to copy the files:
# find . -depth | cpio -pdlmuva /dest_dir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 06:19 AM
тАО08-01-2002 06:19 AM
Re: HPUX: Comparing File Systems "cmp" and "diff" commands
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 06:20 AM
тАО08-01-2002 06:20 AM
Re: HPUX: Comparing File Systems "cmp" and "diff" commands
diff is used to compare text files. while cmp is for comparing binary files.
In your case, dircmp may be useful, which is used to compare two directories.
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 06:23 AM
тАО08-01-2002 06:23 AM
Re: HPUX: Comparing File Systems "cmp" and "diff" commands
# cksum filea fileb
=> will return similar output in the 1st and 2nd field.