diff options
Diffstat (limited to 'chapter03/creatingdirs.xml')
-rw-r--r-- | chapter03/creatingdirs.xml | 63 |
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> do</literal></userinput> - <userinput> mkdir $dirname</userinput> - <userinput> cd $dirname</userinput> - <userinput> mkdir bin etc include lib sbin share - src var</userinput> - <userinput> ln -s share/man man</userinput> - <userinput> ln -s share/doc doc</userinput> - <userinput> ln -s share/info info</userinput> - <userinput> cd $dirname/share</userinput> - <userinput> mkdir dict doc info locale man nls misc - terminfo zoneinfo</userinput> - <userinput> cd $dirname/share/man</userinput> - <userinput> 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> do</literal></userinput> +<userinput> mkdir $dirname</userinput> +<userinput> cd $dirname</userinput> +<userinput> mkdir bin etc include lib sbin share src var</userinput> +<userinput> ln -s share/man man</userinput> +<userinput> ln -s share/doc doc</userinput> +<userinput> ln -s share/info info</userinput> +<userinput> cd $dirname/share</userinput> +<userinput> mkdir dict doc info locale man nls misc terminfo zoneinfo</userinput> +<userinput> cd $dirname/share/man</userinput> +<userinput> 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 &&</userinput> - <userinput>chmod 0750 root &&</userinput> - <userinput>chmod 1777 tmp var/tmp</userinput> -</literallayout></blockquote> +<para> +<screen> +<userinput>cd $LFS &&</userinput> +<userinput>chmod 0750 root &&</userinput> +<userinput>chmod 1777 tmp var/tmp</userinput> +</screen> +</para> <para> Now that the directories are created, copy the source files that were |