effect of strip(1) on du(1)
Subbsd
subbsd at gmail.com
Thu Mar 2 19:29:47 UTC 2017
Hi,
Not sure for FreeBSD < 12, but i found interesting behavior strip
effect(1) on du(1) command:
--
% strip /bin/pax && sleep 4 && du -sh /bin/pax
65K /bin/pax
% strip /bin/pax && sleep 3 && du -sh /bin/pax
65K /bin/pax
% strip /bin/pax && sleep 2 && du -sh /bin/pax
512B /bin/pax
% strip /bin/pax && sleep 3 && du -sh /bin/pax
65K /bin/pax
--
During some interval after strip call, du will show 512B for any file.
If execute du(1) after strip(1) without delay, this behavior is reproduced 100%:
% strip /bin/sh && du /bin/sh
1 /bin/sh
What such behavior is connected with?
More information about the freebsd-hackers
mailing list