Ask Question
23 October, 02:02

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

+1
Answers (1)
  1. 23 October, 03:18
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers