How to create multiple Linux subdirectories (subdirectory hierarchies) with one mkdir command

Category: 

This mkdir command is pretty cool, it shows how to create multiple subdirectories (subdirectory hierarchies) with one command:

mkdir -p public/example.com/{public,log,backup}

That command creates the public, log, and backup directories, underneath the public/example.com directory it also creates.

Tags: 
Tags: 
Tags: 
Tags: 
Tags: 

Post new comment

The content of this field is kept private and will not be shown publicly.