Skip to content
WJunction - Webmaster Forum

Can anyone answer this?

Status
Not open for further replies.
3. What is the purpose of the PATH variable?
a. Set up your PATH variable so that it causes the shell to search the following directories in order:
· /usr/local/bin
· /usr/bin/Xl1
· /usr/bin
· /bin
· /usr/kerberos/bin
· Your own bin directory (usually bin or .bin in your home directory)
· The working directory

b. If a file named doit is in /usr/bin and also in your ~/bin, which one doit will be executed? (Assume that you have execute permission for both of the files.)
c. If your PATH variable is not set to search the working directory, how can you execute a program located there?
d. Which command can you use to add the directory /user/games to the end of the list of directories in your PATH?
 

1 comment

Status
Not open for further replies.

About the author

X
Active Member · Joined
I am white. yada yada
504
Messages
0
Reactions
16
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom