Command line · Question 11 of 12
An executable script is stored at ~/bin/hallo, but running hallo reports "command not found". Which measures solve the problem?
2 answers are correct. Hard Created with AI
Show answer
Answer
- A Call the script with its full path ~/bin/hallo
- C Append the directory ~/bin to the PATH variable
Explanation
The shell only searches the PATH directories for commands without a slash. The file is already executable, so another chmod changes nothing; export only applies to variables.