Entry
Operating system: Linux: Executable: Search: Order: What is the search order for a given command?
Nov 22nd, 2003 09:29
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 22 November 2003 - 06:27 pm -------------------
Operating system: Linux: Executable: Search: Order: What is the search
order for a given command?
---
If <the current command> is the currently typed in command, and
If <the current user> is the name of the current user, then the search
order
is the following:
IF <current command> is not an executable (checked via bits set), then
give an error message and stop
ELSE
1. search first for <the current command> in the current directory
2. search then for <the current command> in the
directory '/usr/<current user>/bin'
3. search then for <the current command> in the directory '/bin'
4. search then for <the current command> in the directory '/usr/bin'
5. give an error message
---
[book: source: Brown, P. J. - begin met Unix - ISBN: 90-6789-026-X -
p. 102]
----------------------------------------------------------------------