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.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications