shellutils-inst.xml 1.0 KB

12345678910111213141516171819202122232425262728
  1. <sect2>
  2. <title>Installation of Sh-utils</title>
  3. <para>Install Shellutils by running the following commands:</para>
  4. <para><screen><userinput>./configure --prefix=/usr &amp;&amp;</userinput>
  5. <userinput>make &amp;&amp;</userinput>
  6. <userinput>make install &amp;&amp;</userinput>
  7. <userinput>cd /usr/bin &amp;&amp;</userinput>
  8. <userinput>mv date echo false pwd stty /bin &amp;&amp;</userinput>
  9. <userinput>mv su true uname hostname /bin</userinput></screen></para>
  10. </sect2>
  11. <sect2>
  12. <title>FHS compliance notes</title>
  13. <para>There is a command installed in this package which is named test. It is
  14. often used in shell scripts to evaluate conditions, but is more often
  15. encountered in the form of <command>[ condition ]</command>. These brackets
  16. are built into the bash interpreter, but the FHS dictates that there should be a
  17. <filename>[</filename> binary. We create that in this way, while still in the
  18. <filename>/usr/bin</filename> directory:</para>
  19. <para><screen><userinput>ln -s test [</userinput></screen></para>
  20. </sect2>