aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/gzip-exp.xml8
-rw-r--r--chapter05/installasuser.xml2
2 files changed, 5 insertions, 5 deletions
diff --git a/chapter05/gzip-exp.xml b/chapter05/gzip-exp.xml
index f228ad4d9..8ab485d00 100644
--- a/chapter05/gzip-exp.xml
+++ b/chapter05/gzip-exp.xml
@@ -1,10 +1,10 @@
<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
+<para><userinput>cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin
+&amp;&amp; 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
diff --git a/chapter05/installasuser.xml b/chapter05/installasuser.xml
index c8939d6a4..21d455ec1 100644
--- a/chapter05/installasuser.xml
+++ b/chapter05/installasuser.xml
@@ -27,7 +27,7 @@ the normal way through the console or the display manager, or with
<userinput>su - lfs</userinput>. When you're working as user "lfs", type
the following commands to setup a good environment to work in:</para>
-<para><screen><userinput>cat > ~/.bash_profile << "EOF"
+<para><screen><userinput>cat &gt; ~/.bash_profile &lt;&lt; "EOF"
umask 022
LFS=/mnt/lfs