mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-20 14:07:39 +00:00
09455475e9
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1673 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
31 lines
996 B
XML
31 lines
996 B
XML
<sect2>
|
|
<title>Installation of Sh-utils</title>
|
|
|
|
<para>Install Shellutils by running the following commands:</para>
|
|
|
|
<para><screen><userinput>./configure --prefix=/usr &&
|
|
make &&
|
|
make install &&
|
|
cd /usr/bin &&
|
|
mv basename date echo false hostname /bin &&
|
|
mv pwd sleep stty su test true uname /bin &&
|
|
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 class="directory">/bin</filename> directory:</para>
|
|
|
|
<para><screen><userinput>cd /bin &&
|
|
ln -sf test [</userinput></screen></para>
|
|
|
|
</sect2>
|
|
|