shellutils-inst.xml 1.1 KB

1234567891011121314151617181920212223242526272829
  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 &amp;&amp;</userinput>
  10. <userinput>mv chroot ../sbin</userinput></screen></para>
  11. </sect2>
  12. <sect2>
  13. <title>FHS compliance notes</title>
  14. <para>There is a command installed in this package which is named test. It is
  15. often used in shell scripts to evaluate conditions, but is more often
  16. encountered in the form of <command>[ condition ]</command>. These brackets
  17. are built into the bash interpreter, but the FHS dictates that there should be a
  18. <filename>[</filename> binary. We create that in this way, while still in the
  19. <filename>/usr/bin</filename> directory:</para>
  20. <para><screen><userinput>ln -sf test [</userinput></screen></para>
  21. </sect2>