Command explanations
cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin
&& rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip: The reason
we don't simply use mv
to move the files to the new location
is because gunzip is a hardlink to gzip. On older distributions you can't
move a hardlink to another partition (and it's very possible that $LFS and
$LFS/usr are separate partitions). With more recent distributions this
isn't a problem. If you run mv to move hardlinks across partitions it'll
just do a regular cp
and discard the hardlink. But, we
can't assume that every host distribution has a new enough kernel and
fileutils that works this way.