shellutils-inst.xml 1.1 KB

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