Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Weird file sizes in Finder
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Dysfunction" data-source="post: 1360741" data-attributes="member: 51052"><p>Not necessarily, I've seen MUCH larger file sizes outa du in some instances, take the following for example:</p><p></p><p></p><p>Method of copy can cause discrepancy.</p><p></p><p>I used cp -rp for the copy process.</p><p></p><p>Mikes-iMac:~ mike$ du -sk /Applications/Adium.app/; du -sk ~/Adium.app/</p><p>70488 /Applications/Adium.app/</p><p>143900 /Users/mike/Adium.app/</p><p>Mikes-iMac:~ mike$ find /Applications/Adium.app/ |wc -l;find ~/Adium.app/ |wc -l</p><p> 3522</p><p> 5766</p><p></p><p>So we missed ended up with more files in the copy. Interesting, isn't it?</p><p></p><p></p><p>I use cp -av and get..</p><p></p><p>Mikes-iMac:~ mike$ du -sk /Applications/Adium.app/; du -sk ~/Adium.app/</p><p>70488 /Applications/Adium.app/</p><p>70488 /Users/mike/Adium.app/</p><p>Mikes-iMac:~ mike$ find /Applications/Adium.app/ |wc -l;find ~/Adium.app/ |wc -l</p><p> 3522</p><p> 3522</p><p></p><p>and it's identical. Now, if you really wanted to compare, you could take the ls -lR output, pipe that to files.. edit the files (sed and awk are your friends) to reduce the discrepancies (directory names etc), and then diff the output. I'm too tired to come up with that statement at the moment <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="Dysfunction, post: 1360741, member: 51052"] Not necessarily, I've seen MUCH larger file sizes outa du in some instances, take the following for example: Method of copy can cause discrepancy. I used cp -rp for the copy process. Mikes-iMac:~ mike$ du -sk /Applications/Adium.app/; du -sk ~/Adium.app/ 70488 /Applications/Adium.app/ 143900 /Users/mike/Adium.app/ Mikes-iMac:~ mike$ find /Applications/Adium.app/ |wc -l;find ~/Adium.app/ |wc -l 3522 5766 So we missed ended up with more files in the copy. Interesting, isn't it? I use cp -av and get.. Mikes-iMac:~ mike$ du -sk /Applications/Adium.app/; du -sk ~/Adium.app/ 70488 /Applications/Adium.app/ 70488 /Users/mike/Adium.app/ Mikes-iMac:~ mike$ find /Applications/Adium.app/ |wc -l;find ~/Adium.app/ |wc -l 3522 3522 and it's identical. Now, if you really wanted to compare, you could take the ls -lR output, pipe that to files.. edit the files (sed and awk are your friends) to reduce the discrepancies (directory names etc), and then diff the output. I'm too tired to come up with that statement at the moment :) [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Weird file sizes in Finder
Top