Back to Blog
Arnošt Havelka

Create Directories in PowerShell

Build directory structures with New-Item.

Start Interactive Lesson
Create Directories in PowerShell

The New-Item command can also create directories. Learn to organize your file system with folders.

Creating Directories

Try the command

Create a new folder!

Build the command
New-Item -Path [dirname] -ItemType Directory
Create a single directory
Terminal
C:\Users\User>New-Item -Path [dirname] -ItemType Directory

Directory Creation

Command Prompt
documents.txt
C:\Users\User>ls

Knowledge Check

1 / 1

How do you create a directory named 'data'?

References

These documentation links provide authoritative details for the commands used in this article.

Up Next

Copy Files in PowerShell

Duplicate files using Copy-Item.