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?
_______________________________________________
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to