How Do You Create a Folder in Unix?
Contents

How do I create a directory and subfolder in Unix?

To create a new directory with multiple subdirectories you only need to type the following command at the prompt and press Enter (obviously, change the directory names to what you want). The -p flag tells the mkdir command to create the main directory first if it doesn’t already exist (htg, in our case).

What is the command to create a folder in Linux?

The mkdir command in Linux/Unix allows users to create or make new directories. mkdir stands for “make directory.” With mkdir , you can also set permissions, create multiple directories (folders) at once, and much more.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest