mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 13:37:39 +00:00
debe1b56f3
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1666 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
17 lines
746 B
XML
17 lines
746 B
XML
<sect2>
|
|
<title>Command explanations</title>
|
|
|
|
<para><userinput>cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin
|
|
&& rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip:</userinput> The reason
|
|
we don't simply use <quote>mv</quote> 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 <quote>cp</quote> and discard the hardlink. But, we
|
|
can't assume that every host distribution has a new enough kernel and
|
|
fileutils that works this way.</para>
|
|
|
|
</sect2>
|
|
|