» Linux » Examen sur Linux » Examen 201 : Advanced Administration » Section 5 » Question 2/23
2.You have installed a new application but when you type in the command to start it you get the

error message: Command not found

What do you need to do to fix this problem?

Add the directory containing the application to your path.
Specify the directory's name whenever you run the application.
Verify that the execute permission has been applied to the command.
Give everyone read, write and execute permissions to the application's directory.

Explanation: One important environment variable is PATH, a list of directories separated by colons (':'). These directories are searched through to find commands. If you try to invoke command 'foo', all the directories in PATH (in that order) are searched for an executable file 'foo' (one with x-bit on). If a file is found, it is executed.

Reference: http://www.tldp.org/HOWTO/mini/Path-3.html

Incorrect Answers
B: It is not necessary to specify the directory's name, if the directory is in the path.
C: If you didn't have execute permission, you would get a permission denied error.
D: It is not necessary to give everyone these permissions. Users shouldn't have write access to an application directory.

« Question 1 Question 3 »