shellutils-inst.xml 1.0 KB

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