Neither project nor project/src exists yet. Type the complete command that creates the directory project/src/main in a single invocation, creating the missing parent directories as needed.

LPIC-1 Exam 101-500, objective 103. GNU and Unix commands easy

Draft — not checked yet. This question was written from the published exam objectives and cites the clause it comes from, but nobody has yet read it against that clause and signed for it.

It is kept out of search results and out of mock exams until they have. Read the source below before you take the answer as settled.

Answer

Type the answer.

Accepted answers

Case sensitive — Linux is, and grading LS as ls would teach a falsehood.

Why

mkdir -p creates every missing component of the path and, usefully in scripts, exits successfully if the directory already exists instead of reporting an error. -m sets the permissions of the new directory directly, e.g. mkdir -m 700 private.

Where this comes from

Cited
LPI exam objective 103.3
What it says
Create directories, including whole directory trees at once.

Practise this

Reading one question is not practice. The trainer will draw a set from objective 103 and space the ones you get wrong.

Practise LPIC-1 Exam 101-500