making up for cvs export not creating empy dirs
[linux_from_scratch.git] / BOOK / chapter06 / shellutils-inst.xml
blob40fa494159c0c47dc7b7174328c87cc18a0de82a
1 <sect2>
2 <title>Installation of Sh-utils</title>
4 <para>Install Shellutils by running the following commands:</para>
6 <para><screen><userinput>./configure --prefix=/usr &amp;&amp;
7 make &amp;&amp;
8 make install &amp;&amp;
9 cd /usr/bin &amp;&amp;
10 mv basename date echo false hostname /bin &amp;&amp;
11 mv pwd sleep stty su test true uname /bin &amp;&amp;
12 mv chroot ../sbin</userinput></screen></para>
14 </sect2>
16 <sect2>
17 <title>FHS compliance notes</title>
19 <para>There is a command installed in this package which is named test. It is 
20 often used in shell scripts to evaluate conditions, but is more often 
21 encountered in the form of <command>[ condition ]</command>. These brackets 
22 are built into the bash interpreter, but the FHS dictates that there should be a
23 <filename>[</filename> binary. We create that in this way, while still in the
24 <filename class="directory">/bin</filename> directory:</para>
26 <para><screen><userinput>cd /bin &amp;&amp;
27 ln -sf test [</userinput></screen></para>
29 </sect2>