This question is an exact duplicate of:

I can only use 3 commands to make 8 directories and a answer file.I used the first command to create a answer file. The second command I used to create 2 of the directories. I've run out of commands to use and still have to do 6 directories. Is there a specific command that allows you to create multiple directories in one step.

marked as duplicate by Jeff Schaller, Stephen Rauch, Tomasz, G-Man, peterh Oct 29 '17 at 21:13

This question was marked as an exact duplicate of an existing question.

  • 2
    You question is vague. What is an answer file? Why 8 directories? Why 3 commands? I suggest you to spend more time on composing your question than people posting answers to it. – Can Burak Çilingir Oct 29 '17 at 19:55

Yes mkdir:

mkdir dira dirb dirc dird

Creates four directories dira, dirb, dirc, and dird.

In one go:

mkdir dir{a..d}
  • And mkdir -p a/b/c to shorten mkdir a a/b a/b/c (and avoid the errors when the directories already exist). – Stéphane Chazelas Oct 29 '17 at 19:59
  • 2
    Don’t we have a ‘‘Please don’t feed the bears.’’ policy?   We probably should. – G-Man Oct 29 '17 at 20:57
  • @G-Man Would you like to explain your comment, Thanks. – Arrow Oct 29 '17 at 21:21
  • 1
    You are doing other people's university coursework for them. unix.meta.stackexchange.com/questions/4206 unix.stackexchange.com/questions/401294 – JdeBP Oct 29 '17 at 21:51
  • 2
    … and, by doing so, encouraging them to bring their homework problems to us as a first resort (rather than as a last resort) in the future. Just as feeding wild animals teaches them that people are a good source of food, which can only lead to trouble. – G-Man Oct 29 '17 at 21:57

Not the answer you're looking for? Browse other questions tagged or ask your own question.