If you want to do this programmatically, you can use Python. Just open a text editor and create a script, for example, create_directory.py:
Save it and then run it on a Python interpreter.
Next, replace /path/to/your/directory with the path you want to create.
This Python script uses os.makedirs() to create the directory and any missing parent directories. Also, it catches any errors that might occur during the creation process.
Follow our blogs to learn more about such Python tricks!