Ask Question
8 September, 12:26

You want to create a directory called ~/Documents/papers, but you're not sure that the ~/Documents directory exists. What command can you type to create the desired directory and its parent directory if it doesn't already exist?

a) mkdir - a ~/Documents/papers

c) mkdir - -recursive ~/Documents/papers

c) mkdir - R ~/Documents/papers

d) mkdir - r ~/Documents/papers

e) mkdir - p ~/Documents/papers

+3
Answers (1)
  1. 8 September, 15:11
    0
    Answer: e) mkdir - p ~/Documents/papers

    Explanation:

    As the question says we want to create a directory called ~/Documents/papers, but we are not sure whether it exist or not so we would type the command for making directory starting with mkdir.

    Here mkdir means make directory. Followed by mkdir we will use - p. Here p is used to create all the directories for getting us the directory we want and its advantage is that it would ignore all the errors if the directory already exist.

    Followed by the name of the directory that we want to create.

    So the desired answer for the given condition would be mkdir - p ~/Documents/papers
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “You want to create a directory called ~/Documents/papers, but you're not sure that the ~/Documents directory exists. What command can you ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers