How Do You Create Multiple Directories in Unix?
Contents

To create multiple directories in UNIX or Linux using the mkdir command pass the names of directories to be created to the mkdir command. The names of directories should be separated by spaces.

How do you create multiple folders in Unix?

You can create directories one by one with mkdir, but this can be time-consuming. To avoid that, you can run a single mkdir command to create multiple directories at once. To do so, use the curly brackets {} with mkdir and state the directory names, separated by a comma.

How do you create multiple sub directories in one command in Linux?

How to Create Multiple Subdirectories with One Linux Command

  1. If you want to create a directory containing several subdirectories, or a directory tree, using the command line in Linux, generally you have to use the mkdir command several times. …
  2. This can all be combined into one command, and we’ll show you how.

11 окт. 2016 г.

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest