Ask Question

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. 22 January, 07:49
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers