Introduction

For when you need to bulk create bulk folders and files for testing. The command line to the rescue as always.

Commands

For bulk directories:

mkdir subdir_{0001..1000}

For bulk files within those directories:

find . -type d -exec touch {}/file01 \;
Creating bulk directories and files on FreeBSD

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.