Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/boot/common/creatingdirs.xml

    rd2ecc65 r6b2fbfc  
    1111  <title>Creating Directories</title>
    1212
    13     <note os="a">
    14       <para>The commands in the remainder of the book should be run as
    15       the <systemitem class="username">root</systemitem> user. Check
    16       that ${CLFS} is set in the
    17       <systemitem class="username">root</systemitem> user&rsquo;s environment
    18        before proceeding.</para>
    19     </note>
    20 
    21   <para os="b">It is time to create some structure in the CLFS file system. Create a
     13  <para os="a">It is time to create some structure in the CLFS file system. Create a
    2214  standard directory tree by issuing the following commands:</para>
    2315
    24 <screen os="c"><userinput>mkdir -pv ${CLFS}/{bin,boot,dev,{etc/,}opt,home,lib/firmware,mnt}
     16<screen os="b"><userinput>mkdir -pv ${CLFS}/{bin,boot,dev,{etc/,}opt,home,lib,mnt}
    2517mkdir -pv ${CLFS}/{proc,media/{floppy,cdrom},run/{,shm},sbin,srv,sys}
    2618mkdir -pv ${CLFS}/var/{lock,log,mail,spool}
     
    3123mkdir -pv ${CLFS}/usr/{,local/}share/{doc,info,locale,man}
    3224mkdir -pv ${CLFS}/usr/{,local/}share/{misc,terminfo,zoneinfo}
    33 mkdir -pv ${CLFS}/usr/{,local/}share/man/man{1,2,3,4,5,6,7,8}</userinput></screen>
     25mkdir -pv ${CLFS}/usr/{,local/}share/man/man{1,2,3,4,5,6,7,8}
     26for dir in ${CLFS}/usr{,/local}; do
     27  ln -sv share/{man,doc,info} $dir
     28done</userinput></screen>
    3429
    35   <para os="d">Directories are, by default, created with permission mode 755,
     30  <para os="c">Directories are, by default, created with permission mode 755,
    3631  but this is not desirable for all directories. In the commands above,
    3732  two changes are made&mdash;one to the home directory of user
     
    3934  directories for temporary files.</para>
    4035
    41   <para os="e">The first mode change ensures that not just anybody can enter
     36  <para os="d">The first mode change ensures that not just anybody can enter
    4237  the <filename class="directory">/root</filename> directory&mdash;the
    4338  same as a normal user would do with his or her home directory. The
     
    4944  1777 bit mask.</para>
    5045
    51   <sect2 os="f">
     46  <sect2 os="e">
    5247    <title>FHS Compliance Note</title>
    5348
Note: See TracChangeset for help on using the changeset viewer.