2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Sh-utils</title>
|
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Install Shellutils by running the following commands:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><screen><userinput>./configure --prefix=/usr &&</userinput>
|
2001-07-10 16:06:31 +01:00
|
|
|
<userinput>make &&</userinput>
|
|
|
|
<userinput>make install &&</userinput>
|
|
|
|
<userinput>cd /usr/bin &&</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>mv -f date echo false pwd stty /bin &&</userinput>
|
|
|
|
<userinput>mv -f su true uname hostname /bin</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2001-05-04 00:44:00 +01:00
|
|
|
<sect2>
|
|
|
|
<title>FHS compliance notes</title>
|
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<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
|
2001-05-04 00:44:00 +01:00
|
|
|
<filename>[</filename> binary. We create that in this way, while still in the
|
2001-07-22 20:45:10 +01:00
|
|
|
<filename>/usr/bin</filename> directory:</para>
|
|
|
|
|
2001-08-23 23:38:49 +01:00
|
|
|
<para><screen><userinput>ln -sf test [</userinput></screen></para>
|
2001-05-04 00:44:00 +01:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|