lfs/chapter06/shellutils-inst.xml
Mark Hymers 4d6fc2dabb [Bug 164] XML Tidy up
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1329 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2001-10-27 22:21:44 +00:00

30 lines
943 B
XML

<sect2>
<title>Installation of Sh-utils</title>
<para>Install Shellutils by running the following commands:</para>
<para><screen><userinput>./configure --prefix=/usr &amp;&amp;
make &amp;&amp;
make install &amp;&amp;
cd /usr/bin &amp;&amp;
mv date echo false pwd stty /bin &amp;&amp;
mv su true uname hostname /bin &amp;&amp;
mv chroot ../sbin</userinput></screen></para>
</sect2>
<sect2>
<title>FHS compliance notes</title>
<para>There is a command installed in this package which is named test. It is
often used in shell scripts to evaluate conditions, but is more often
encountered in the form of <command>[ condition ]</command>. These brackets
are built into the bash interpreter, but the FHS dictates that there should be a
<filename>[</filename> binary. We create that in this way, while still in the
<filename>/usr/bin</filename> directory:</para>
<para><screen><userinput>ln -sf test [</userinput></screen></para>
</sect2>