5.20. Superseding Standard UtilitiesUsers often create a "bin" subdirectory in their home directory and place this subdirectory before the traditional "bin" directories in their PATH setting. This allows them to supersede default GNU utilities with their own "homebrewed" versions, since they will be located by the search process ahead of their standard counterparts. If you choose to do this, you should take great care, as scripts run from a shell expect to use standard utilities and might be confused by the nonstandard utilities that actually get executed. In the following example, I inserted my own "bin" directory into the search path sequence, and then overrode the standard "ls" utility with my own version: $ mkdir bin ...make my own personal "bin" directory. $ cd bin ...move into the new directory. $ cat > ls ...create a script called "ls". echo my ls ^D ...end-of-input. $ chmod +x ls ...make it executable. Note that only this shell and its child shells would be affected by the change to PATH; all other shells would be unaffected. |