aboutsummaryrefslogtreecommitdiffstats
path: root/chapter03/creatingdirs.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter03/creatingdirs.xml')
-rw-r--r--chapter03/creatingdirs.xml63
1 files changed, 31 insertions, 32 deletions
diff --git a/chapter03/creatingdirs.xml b/chapter03/creatingdirs.xml
index 969b51859..d581f3ffd 100644
--- a/chapter03/creatingdirs.xml
+++ b/chapter03/creatingdirs.xml
@@ -8,33 +8,30 @@ url="http://www.pathname.com/fhs/">http://www.pathname.com/fhs/</ulink>.
Issuing the following commands will create a default directory layout:
</para>
-<blockquote><literallayout>
- <userinput>cd $LFS</userinput>
- <userinput>mkdir -p bin boot dev/pts etc/opt home lib mnt proc
- root sbin tmp var opt</userinput>
- <userinput>for dirname in $LFS/usr $LFS/usr/local</userinput>
- <userinput><literal>&nbsp;&nbsp;&nbsp;do</literal></userinput>
- <userinput>&nbsp;&nbsp;&nbsp;mkdir $dirname</userinput>
- <userinput>&nbsp;&nbsp;&nbsp;cd $dirname</userinput>
- <userinput>&nbsp;&nbsp;&nbsp;mkdir bin etc include lib sbin share
- src var</userinput>
- <userinput>&nbsp;&nbsp;&nbsp;ln -s share/man man</userinput>
- <userinput>&nbsp;&nbsp;&nbsp;ln -s share/doc doc</userinput>
- <userinput>&nbsp;&nbsp;&nbsp;ln -s share/info info</userinput>
- <userinput>&nbsp;&nbsp;&nbsp;cd $dirname/share</userinput>
- <userinput>&nbsp;&nbsp;&nbsp;mkdir dict doc info locale man nls misc
- terminfo zoneinfo</userinput>
- <userinput>&nbsp;&nbsp;&nbsp;cd $dirname/share/man</userinput>
- <userinput>&nbsp;&nbsp;&nbsp;mkdir man{1,2,3,4,5,6,7,8}</userinput>
- <userinput>done</userinput>
- <userinput>cd $LFS/var</userinput>
- <userinput>mkdir -p lock log mail run spool tmp opt cache lib/misc
- local</userinput>
- <userinput>cd $LFS/opt</userinput>
- <userinput>mkdir bin doc include info lib man</userinput>
- <userinput>cd $LFS/usr</userinput>
- <userinput>ln -s ../var/tmp tmp</userinput>
-</literallayout></blockquote>
+<para>
+<screen>
+<userinput>cd $LFS</userinput>
+<userinput>mkdir -p bin boot dev/pts etc/opt home lib mnt proc root sbin tmp var opt</userinput>
+<userinput>for dirname in $LFS/usr $LFS/usr/local</userinput>
+<userinput><literal>&nbsp;&nbsp;&nbsp;do</literal></userinput>
+<userinput>&nbsp;&nbsp;&nbsp;mkdir $dirname</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;cd $dirname</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;mkdir bin etc include lib sbin share src var</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;ln -s share/man man</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;ln -s share/doc doc</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;ln -s share/info info</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;cd $dirname/share</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;mkdir dict doc info locale man nls misc terminfo zoneinfo</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;cd $dirname/share/man</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;mkdir man{1,2,3,4,5,6,7,8}</userinput>
+<userinput>done</userinput>
+<userinput>cd $LFS/var</userinput>
+<userinput>mkdir -p lock log mail run spool tmp opt cache lib/misc local</userinput>
+<userinput>cd $LFS/opt</userinput>
+<userinput>mkdir bin doc include info lib man</userinput>
+<userinput>cd $LFS/usr</userinput>
+<userinput>ln -s ../var/tmp tmp</userinput>
+</screen></para>
<para>
Normally, directories are created with permission mode 755, which isn't
@@ -47,11 +44,13 @@ directory but cannot remove another user's files (the latter is caused
by the so-called "sticky bit" - bit 1 of the 1777 bit mask).
</para>
-<blockquote><literallayout>
- <userinput>cd $LFS &amp;&amp;</userinput>
- <userinput>chmod 0750 root &amp;&amp;</userinput>
- <userinput>chmod 1777 tmp var/tmp</userinput>
-</literallayout></blockquote>
+<para>
+<screen>
+<userinput>cd $LFS &amp;&amp;</userinput>
+<userinput>chmod 0750 root &amp;&amp;</userinput>
+<userinput>chmod 1777 tmp var/tmp</userinput>
+</screen>
+</para>
<para>
Now that the directories are created, copy the source files that were