

{"id":110414,"date":"2022-09-06T09:00:19","date_gmt":"2022-09-06T03:30:19","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=110414"},"modified":"2022-09-06T09:40:11","modified_gmt":"2022-09-06T04:10:11","slug":"mkdir-command-in-linux","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/mkdir-command-in-linux\/","title":{"rendered":"Mkdir Command in Linux"},"content":{"rendered":"<p>By the end of this article, you will learn all there is to the mkdir command in Linux-based operating systems. We will be going through what mkdir is, a brief history of the command, the different options used with the mkdir command along with the syntax. In the end, we will look at some practical commands of the mkdir commands in the terminal which help in making directories without using the GUI. Let&#8217;s start!!!<\/p>\n<h3>What is mkdir Command in Linux?<\/h3>\n<p>Mkdir is an abbreviation for \u201cMake Directory\u201d. Mkdir is a command-line-based utility in Linux-based operating systems that helps in the creation of directories.<\/p>\n<p>We all know that there are 2 ways of doing things in Linux distributions. One is the GUI and the other is the terminal. we also know that the command line or the terminal is what makes Linux stand out.<\/p>\n<p>The Terminal is all about efficiency and productivity rather than the GIU where you have to click many buttons and navigate through different items. However, in the terminal, there are no extra Clicks on nicks!<\/p>\n<p>Hence we have different file management commands like rm, cp, mv, rmdir, pwd, cd and ls. Mkdir is one such file management command whose role is to create directories from the terminal.<\/p>\n<h3>History of Linux mkdir command<\/h3>\n<p>In the initial versions of UNIX, as the kernel did not have a mkdir syscall, the command had to be setuid root. Rather it made the directory with mknod and linked in the \u201c.\u201d and \u201c..\u201d directory entries manually.<\/p>\n<p>The mkdir command that comes in the GNU Coreutils was written developed and designed by David MacKenzie.<\/p>\n<h3>Syntax of linux mkdir command<\/h3>\n<p>The syntax of the mkdir command is pretty simple:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">mkdir &lt;options&gt; &lt;path or directory name&gt;<\/pre>\n<p>The syntax has 2 fields, one is for the options, which we will look at in-depth in the net section. The other field is where you either enter the name of the directory you want to create or the path of the directory with its name at the end.<\/p>\n<h3>Options used with linux mkdir command<\/h3>\n<p>We can pair the mkdir command with the available options which specify or tell what the mkdir command must do. Let us look at the options available with the mkdir command.<\/p>\n<h4>1. -p<\/h4>\n<p>This option makes parent directories as needed, and does not print an error if a parent directory exists. You can also write this option as \u201c&#8211;parents\u201d<\/p>\n<h4>2. -v<\/h4>\n<p>This option provides verbose to the output to get a better understanding.<\/p>\n<h4>3. -Z<\/h4>\n<p>This option sets the SE Linux security context of each created directory to the context you specified. You can also write this option as \u201c&#8211;context\u201d.<\/p>\n<h4>4. -m<\/h4>\n<p>This option sets the file mode, it functions very similar to the chmod command. You can also write this option as \u201c&#8211;mode\u201d<\/p>\n<h4>5. &#8211;size &lt;n&gt;<\/h4>\n<p>This option uses the specified size in kilobytes as the size of the image to use for the boot disk. If you don\u2019t specify anything, it will take the default value as 1.44Mb<\/p>\n<h4>6. &#8211;kernelargs &lt;arguments&gt;<\/h4>\n<p>This option specifies the arguments appended on the kernel command line.<\/p>\n<h4>7. &#8211;help<\/h4>\n<p>This option prints the following help menu.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/help-menu-of-the-mkdir-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110596\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/help-menu-of-the-mkdir-command.webp\" alt=\"help menu of the mkdir command\" width=\"780\" height=\"383\" \/><\/a><\/p>\n<h4>8. &#8211;version<\/h4>\n<p>This option prints the information about the version of mkdir you are using<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/version-of-the-mkdir-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110597\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/version-of-the-mkdir-command.webp\" alt=\"version of the mkdir command\" width=\"780\" height=\"177\" \/><\/a><\/p>\n<p>Now that we have laid down the fundamentals, let us look at some practical commands of the mkdir command in the terminal<\/p>\n<h3>Creating a directory<\/h3>\n<p>The process of creating a directory is extremely easy, all you gave to do is use the mkdir command followed by the name of the directory you want to create. For example in the below output, I create a directory called \u201cFerrar\u201d by using the following syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">mkdir &lt;directory name&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/creating-a-directory.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110599\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/creating-a-directory.webp\" alt=\"creating a directory\" width=\"590\" height=\"154\" \/><\/a><\/p>\n<p>But there is one disadvantage to this method. You need to be in the directory where you want to create your directory. So before using the mkdir command, you need to navigate to the specific directory by using the \u201ccd\u201d command as shown:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/navigating-to-the-a-specific-directory-to-create-a-directory-in-it.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110600\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/navigating-to-the-a-specific-directory-to-create-a-directory-in-it.webp\" alt=\"navigating to the a specific directory to create a directory in it\" width=\"462\" height=\"82\" \/><\/a><\/p>\n<h3>Creating a directory using a path<\/h3>\n<p>We already know that the terminal is way better than the GUI. We can create a directory in any specific location, no matter where you are in the filesystem. You can do so by specifying the path of where you want the directory to be created followed by the name of the directory you want to create:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">mkdir &lt;path&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/creating-a-directory-using-a-path.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110601\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/creating-a-directory-using-a-path.webp\" alt=\"creating a directory using a path\" width=\"760\" height=\"192\" \/><\/a><\/p>\n<p>In the above output, I created a directory called \u201cbentley\u201d in the directory \u201ccars\u201d, which is in the path \u201c\/home\/gopikiran\/Desktop\/cars\u201d even though I was in the home directory.<\/p>\n<p>You must note that when you are specifying the path of the directory, always start from the root directory (\/) and work your way down.<\/p>\n<h3>Creating multiple directories<\/h3>\n<p>To create multiple directories using the mkdir command, you need to specify the names of the directories after the mkdir command. Make sure that the names of the directories are enclosed in a curly bracket and also separated by commas as shown below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">mkdir {directory1, directory2, directory3, directory4}<\/pre>\n<p>Let us understand this better with an example:<\/p>\n<h3><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/creating-multiple-directories.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110602\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/creating-multiple-directories.webp\" alt=\"creating multiple directories\" width=\"780\" height=\"117\" \/><\/a><\/h3>\n<h3>Providing verbose while creating directories<\/h3>\n<p>Until now, in all of the outputs above, we have been checking if the directory has been successfully created or not by using the \u201cls\u201d command. Instead, of using a whole other command another time, we can provide verbose to the output by using the option \u201c-v\u201d, and mkdir will show us if the directory has been created or not.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/providing-verbose-while-creating-a-directory.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110603\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/providing-verbose-while-creating-a-directory.webp\" alt=\"providing verbose while creating a directory\" width=\"685\" height=\"94\" \/><\/a><\/p>\n<p>In the below-shown output, If I try to create the same directory in the same path twice, I get a message saying that the directory already exists and I cannot create it.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/providing-verbose-while-creating-a-directory-using-a-path.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110609\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/providing-verbose-while-creating-a-directory-using-a-path.webp\" alt=\"providing verbose while creating a directory using a path\" width=\"780\" height=\"98\" \/><\/a><\/p>\n<p>You can even provide verbose while creating multiple files as shown:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/providing-verbose-while-creating-multiple-directories.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110604\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/providing-verbose-while-creating-multiple-directories.webp\" alt=\"providing verbose while creating multiple directories\" width=\"780\" height=\"158\" \/><\/a><\/p>\n<h3>Creating parent directories<\/h3>\n<p>Using the mkdir command, you can even create subdirectories within the directory you are creating. Meaning, that you are creating a subdirectory at the same time you are creating the directory.<\/p>\n<p>The best part is that you can create how many ever subdirectories you want! To do so, use the option p and separate the subdirectories by a slash (\/) as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">mkdir -p &lt;directory name&gt;\/&lt;subdirectory name&gt;.........<\/pre>\n<p>Let us understand this by looking at an example.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/creating-parent-directories.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110605\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/creating-parent-directories.webp\" alt=\"creating parent directories\" width=\"780\" height=\"320\" \/><\/a><\/p>\n<p>In the above output, I created a directory \u201cbentley\u201d inside the directory \u201clambo\u201d, which in turn inside the directory \u201ccars\u201d, which is inside the directory \u201cpictures\u201d.<\/p>\n<h3>Setting permissions while creating a directory<\/h3>\n<p>Just like the \u2018chmod\u2019 command in Linux, mkdir set the permissions of a directory, except mkdir takes things 1 notch higher, we can immediately set the permissions as soon as we create one. Before we see how to create permissions using mkdir, let us give a light brush up on permissions.<\/p>\n<p>Basically speaking permission is 3 sets of characters (a total set of 6 characters). These characters are: r (read), w(write) and x (execute). The first set of 3 characters are the permissions for the user, the second is for the user group and the third is for the other users. Below is the table of permissions in octal notation.<\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Binary Notation<\/strong><\/td>\n<td><strong>Octal Notation<\/strong><\/td>\n<td><strong>Permission<\/strong><\/td>\n<td><strong>meaning<\/strong><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">000<\/span><\/td>\n<td><span style=\"font-weight: 400;\">0<\/span><\/td>\n<td><span style=\"font-weight: 400;\">&#8211;<\/span><\/td>\n<td><span style=\"font-weight: 400;\">No permission<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">001<\/span><\/td>\n<td><span style=\"font-weight: 400;\">1<\/span><\/td>\n<td><span style=\"font-weight: 400;\">&#8211;x<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Only execute<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">010<\/span><\/td>\n<td><span style=\"font-weight: 400;\">2<\/span><\/td>\n<td><span style=\"font-weight: 400;\">-w-<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Only write<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">011<\/span><\/td>\n<td><span style=\"font-weight: 400;\">3<\/span><\/td>\n<td><span style=\"font-weight: 400;\">-wx<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Write and execute<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">100<\/span><\/td>\n<td><span style=\"font-weight: 400;\">4<\/span><\/td>\n<td><span style=\"font-weight: 400;\">r&#8211;<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Only read<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">101<\/span><\/td>\n<td><span style=\"font-weight: 400;\">5<\/span><\/td>\n<td><span style=\"font-weight: 400;\">r-x<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Read and execute<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">110<\/span><\/td>\n<td><span style=\"font-weight: 400;\">6<\/span><\/td>\n<td><span style=\"font-weight: 400;\">rw-<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Read and write<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">111<\/span><\/td>\n<td><span style=\"font-weight: 400;\">7<\/span><\/td>\n<td><span style=\"font-weight: 400;\">rwx<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Read write and execute<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>To set permissions using the mkdir command use the option \u201c-m\u201d followed by the set of permissions in octal form as shown below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">mkdir -m &lt;permissions&gt; &lt;directory name&gt;<\/pre>\n<p>For example, the command \u201cmkdir -m 777 cars\u201d will create a directory named \u201ccar\u201d and gives it the permission or reading, writing and executing to the user, group and other users (rwxrwxrwx).<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/setting-permission-of-777-while-creating-a-directory.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110607\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/setting-permission-of-777-while-creating-a-directory.webp\" alt=\"setting permission of 777 while creating a directory\" width=\"702\" height=\"124\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Another way of writing the above command is by using the command \u201cmkdir -m a=rwx safari\u201d, where \u201ca\u201d stands for \u201call\u201d, thereby giving everyone the permissions of rwx.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/another-way-of-giving-777-permissions-while-creating-a-directory.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110606\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/another-way-of-giving-777-permissions-while-creating-a-directory.webp\" alt=\"another way of giving 777 permissions while creating a directory\" width=\"740\" height=\"122\" \/><\/a><\/p>\n<p>The command \u201cmkdir -m 740 safari\u201d will give the permission of reading, writing, and executing to the user, only reading to the group members and no permissions to the other users (rwxr&#8212;&#8211;).<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/setting-permission-of-740-while-creating-a-directory.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110608\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/setting-permission-of-740-while-creating-a-directory.webp\" alt=\"setting permission of 740 while creating a directory\" width=\"715\" height=\"127\" \/><\/a><\/p>\n<h3>Summary<\/h3>\n<p>As you have seen the mkdir command is a really simple file management command in Linux that helps in creating directories from the terminal. Using the mkdir improves the efficiency of workflow a lot as it can do a lot more stuff than the GUI<\/p>\n<p>You have now learned what mkdir is, its syntax options, and practical commands in the terminal.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By the end of this article, you will learn all there is to the mkdir command in Linux-based operating systems. We will be going through what mkdir is, a brief history of the command,&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":110550,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[27069,27070],"class_list":["post-110414","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux-mkdir","tag-mkdir-command-in-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Mkdir Command in Linux - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn what mkdir command in linux is, its history, syntax, different options used with the mkdir command along with examples.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/mkdir-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mkdir Command in Linux - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn what mkdir command in linux is, its history, syntax, different options used with the mkdir command along with examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/mkdir-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-06T03:30:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-06T04:10:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/06\/mkdir-command-in-linux.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mkdir Command in Linux - DataFlair","description":"Learn what mkdir command in linux is, its history, syntax, different options used with the mkdir command along with examples.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/mkdir-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"Mkdir Command in Linux - DataFlair","og_description":"Learn what mkdir command in linux is, its history, syntax, different options used with the mkdir command along with examples.","og_url":"https:\/\/data-flair.training\/blogs\/mkdir-command-in-linux\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2022-09-06T03:30:19+00:00","article_modified_time":"2022-09-06T04:10:11+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/06\/mkdir-command-in-linux.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/mkdir-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/mkdir-command-in-linux\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/b49855299264df5e27e3ec6c2cd9fde9"},"headline":"Mkdir Command in Linux","datePublished":"2022-09-06T03:30:19+00:00","dateModified":"2022-09-06T04:10:11+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/mkdir-command-in-linux\/"},"wordCount":1355,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/mkdir-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/06\/mkdir-command-in-linux.webp","keywords":["Linux Mkdir","mkdir command in linux"],"articleSection":["Linux Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/mkdir-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/mkdir-command-in-linux\/","url":"https:\/\/data-flair.training\/blogs\/mkdir-command-in-linux\/","name":"Mkdir Command in Linux - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/mkdir-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/mkdir-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/06\/mkdir-command-in-linux.webp","datePublished":"2022-09-06T03:30:19+00:00","dateModified":"2022-09-06T04:10:11+00:00","description":"Learn what mkdir command in linux is, its history, syntax, different options used with the mkdir command along with examples.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/mkdir-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/mkdir-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/mkdir-command-in-linux\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/06\/mkdir-command-in-linux.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/06\/mkdir-command-in-linux.webp","width":1200,"height":628,"caption":"mkdir command in linux"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/mkdir-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Linux Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/linux\/"},{"@type":"ListItem","position":3,"name":"Mkdir Command in Linux"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/b49855299264df5e27e3ec6c2cd9fde9","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ef46b745ddad2fad690af626c6ef29b91809ad0a9f5ef398d07817d8cad042f5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ef46b745ddad2fad690af626c6ef29b91809ad0a9f5ef398d07817d8cad042f5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ef46b745ddad2fad690af626c6ef29b91809ad0a9f5ef398d07817d8cad042f5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team is a group of passionate educators and industry experts dedicated to providing high-quality online learning resources on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. With years of experience in the field, the team aims to simplify complex topics and help learners advance their careers. At DataFlair, we believe in empowering students and professionals with the knowledge and skills needed to thrive in today\u2019s fast-paced tech industry. Follow us for Free courses, expert insights, tutorials, and practical tips to boost your learning journey.","url":"https:\/\/data-flair.training\/blogs\/author\/datafbdad\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/110414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=110414"}],"version-history":[{"count":7,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/110414\/revisions"}],"predecessor-version":[{"id":111088,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/110414\/revisions\/111088"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/110550"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=110414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=110414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=110414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}