Skip to content
FLAVIO COPES
flaviocopes.com
2026

Create multiple folders using Bash

By Flavio Copes

Learn how to create many numbered folders at once in Bash using the mkdir {1..30} brace expansion one-liner, instead of making each folder by hand.

~~~

I had the need to create 30 folders from 1 to 30 and I got tired making them manually after the first 4.

So I looked on Google and found this Bash one-liner:

mkdir {1..30}

This also works on Zsh but not on Fish (the shell I use)

Tagged: CLI · All topics
~~~

Related posts about cli: