Home » LPI » 117-201 » What do you need to do to fix this problem?
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?
A. Add the directory containing the application to your path.
B. Specify the directory’s name whenever you run the application.
C. Verify that the execute permission has been applied to the command.
D. Give everyone read, write and execute permissions to the application’s directory.
Correct Answer: A
Explanation/Reference:
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.
Download Printable PDF. VALID exam to help you PASS.
|
|