Changeset 110ec35a for general/sysutils/which.xml
- Timestamp:
- 09/21/2003 02:32:24 AM (21 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v5_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 36f9a23
- Parents:
- 2be20f1b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/sysutils/which.xml
r2be20f1b r110ec35a 3 3 <title>which-&which-version; and alternatives</title> 4 4 5 <para>The presence / absence of the which program in the main LFS book6 is probably one of the most contentious issues we have on the mailing 7 lists. It has resulted in at least one flame war in the recent past.5 <para>The presence / absence of the which program in the main <acronym>LFS 6 </acronym> book is probably one of the most contentious issues we have on the 7 mailing lists. It has resulted in at least one flame war in the recent past. 8 8 To hopefully put an end to this once and for all, we here present two of 9 9 the options for equipping your system with "which".</para> … … 19 19 <para>The second option (for those who don't want to install the program) 20 20 is to create a simple script:</para> 21 < para><screen><userinput>cat > /usr/bin/which << "EOF"</userinput>21 <screen><userinput><command>cat > /usr/bin/which << "EOF"</command> 22 22 #!/bin/bash 23 23 type -p "$@" 24 < userinput>EOF24 <command>EOF 25 25 chmod 755 /usr/bin/which 26 chown root:root /usr/bin/which</ userinput></screen></para>26 chown root:root /usr/bin/which</command></userinput></screen> 27 27 <para>This should generally work OK and is probably the easiest solution 28 28 for boxes which don't need a good user environment to work in.</para>
Note:
See TracChangeset
for help on using the changeset viewer.