How to create a new directory in Linux using the terminal? (2024)

The mkdir command is used to create a new directory in the Linux/Unix operating system. It is also used to create more than one directory at a time and set the permission for the directories just like the chmod command in the Linux system.

Brief description of options available in the mkdir command.

To create a new directory in the Linux/Unix operating system using terminal, we use mkdir (make directory) command as shown in below.

After executing this command, a new directory will be created with the “newdir” name in the current director.

The mkdir command is also used to create multiple directories at time as shown in below.

To create a parent directory and child directory using -p or --parents option and print a message that what is being done using -v or --verbose option along with the mkdir command in the Linux system as shown in below.

After executing the above command, a new directory is created as well a child directory also created inside the parent directory.

To create directory and set permission at the time of creation, we use -m or --mode option with the mkdir command.

To check the version information of the mkdir command run below command.

To check more details about options about the mkdir command execute --help option with the mkdir command.

Note– It is mandatory to owner permission to create a directory in the parent directory otherwise an error will be “prompt permission denied”.

How to create a new directory in Linux using the terminal? (2024)
Top Articles
Tax Credit vs. Deduction: What’s the Difference?
How to edit google form after submit?
Dragon Age Inquisition War Table Operations and Missions Guide
Davita Internet
Methstreams Boxing Stream
7 Verification of Employment Letter Templates - HR University
Sandrail Options and Accessories
10000 Divided By 5
Tanger Outlets Sevierville Directory Map
Lesson 1 Homework 5.5 Answer Key
Spelunking The Den Wow
OpenXR support for IL-2 and DCS for Windows Mixed Reality VR headsets
Northern Whooping Crane Festival highlights conservation and collaboration in Fort Smith, N.W.T. | CBC News
Grab this ice cream maker while it's discounted in Walmart's sale | Digital Trends
Idaho Harvest Statistics
Brett Cooper Wikifeet
Georgia Vehicle Registration Fees Calculator
Sni 35 Wiring Diagram
Loft Stores Near Me
Tyrone Unblocked Games Bitlife
Theater X Orange Heights Florida
Best Transmission Service Margate
Sadie Sink Reveals She Struggles With Imposter Syndrome
January 8 Jesus Calling
27 Modern Dining Room Ideas You'll Want to Try ASAP
Is Light Raid Hard
Fuse Box Diagram Honda Accord (2013-2017)
Taylored Services Hardeeville Sc
Greyson Alexander Thorn
Otis Inmate Locator
Bursar.okstate.edu
L'alternativa - co*cktail Bar On The Pier
Kltv Com Big Red Box
Linabelfiore Of
Montrose Colorado Sheriff's Department
Grapes And Hops Festival Jamestown Ny
Craigslist Pets Huntsville Alabama
The Thing About ‘Dateline’
How much does Painttool SAI costs?
Craigslist Lakeside Az
Jack In The Box Menu 2022
Karen Wilson Facebook
Emily Browning Fansite
City Of Irving Tx Jail In-Custody List
Www.homedepot .Com
Wera13X
M Life Insider
Marion City Wide Garage Sale 2023
Hcs Smartfind
Cataz.net Android Movies Apk
La Fitness Oxford Valley Class Schedule
Latest Posts
Article information

Author: Errol Quitzon

Last Updated:

Views: 6127

Rating: 4.9 / 5 (59 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Errol Quitzon

Birthday: 1993-04-02

Address: 70604 Haley Lane, Port Weldonside, TN 99233-0942

Phone: +9665282866296

Job: Product Retail Agent

Hobby: Computer programming, Horseback riding, Hooping, Dance, Ice skating, Backpacking, Rafting

Introduction: My name is Errol Quitzon, I am a fair, cute, fancy, clean, attractive, sparkling, kind person who loves writing and wants to share my knowledge and understanding with you.