Download CIS 90 - Lesson 11
Transcript
CIS 90 - Lesson 11 OS Search Step Command: find The shell now must search, in order, every directory on Benji’s path to locate the first occurrence of the find command. Benji’s path is defined by the value of his PATH variable 1st directory searched: /usr/lib/qt-3.3/bin 2nd directory searched: /usr/local/bin The shell locates the find command in the 3rd directory searched: /bin /bin directory 4th directory searched: /usr/bin 5th directory searched: /usr/local/sbin 6th directory searched: /usr/sbin 7th directory searched: /sbin 8th directory searched: /home/cis90/simben/../bin 9th directory searched: /home/cis90/simben/bin 10th directory searched: . /home/cis90/simben $ echo $PATH /usr/lib/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/cis90/simben/../bin:/home/cis90/simben/bin:. 56