Can I create multiple directories?

055

Yes, you can create multiple directories at once using the mkdir command by listing the directory names separated by spaces.

Example:

To create three directories named circle, square, and triangle inside the geometry directory, you would use:

mkdir ~/project/geometry/circle ~/project/geometry/square ~/project/geometry/triangle

Alternatively:

You can also use brace expansion for a more concise command:

mkdir ~/project/geometry/{circle,square,triangle}

This will create the same three directories. If you have any more questions or need further assistance, let me know!

0 Comments

no data
Be the first to share your comment!