aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/shellutils-inst.xml
blob: 27d29ea4ffc3879d39d061f5dc40405f61f877c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<sect2>
<title>Installation of Sh-utils</title>

<para>
Install Shellutils by running the following commands:
</para>

<blockquote><literallayout>
	<userinput>./configure --prefix=/usr &amp;&amp;</userinput>
	<userinput>make &amp;&amp;</userinput>
	<userinput>make install &amp;&amp;</userinput>
	<userinput>cd /usr/bin &amp;&amp;</userinput>
	<userinput>mv date echo false pwd stty /bin &amp;&amp;</userinput>
	<userinput>mv su true uname hostname /bin</userinput>
</literallayout></blockquote>

</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 if more often encountered
under the form <command>[ condition ]</command>. These brackets are built into
the bash interpreter, but the FHS dictates that there should exist a
<filename>[</filename> binary. We create that in this way, while still in the
<filename>/usr/bin</filename> directory:
</para>

<blockquote><literallayout>
	<userinput>ln -s test [</userinput>
</literallayout></blockquote>

</sect2>