{"id":21845,"date":"2023-10-01T03:33:04","date_gmt":"2023-10-01T03:33:04","guid":{"rendered":"https:\/\/linuxways.net\/?p=21845"},"modified":"2023-10-01T17:22:59","modified_gmt":"2023-10-01T17:22:59","slug":"how-to-create-a-directory-and-subdirectory-in-linux-ubuntu","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-create-a-directory-and-subdirectory-in-linux-ubuntu\/","title":{"rendered":"How to Create a Directory and Subdirectory in Linux\/Ubuntu?"},"content":{"rendered":"<p><strong>Directories, also<\/strong> known as <strong>folders<\/strong>, are locations to store files in an Operating System. Similarly, a <strong>Subdirectory<\/strong> is a directory within a directory. In Unix\/Linux systems, <strong>mkdir<\/strong> command is used to create directories and subdirectories using the command line. In this article, we will demonstrate different ways of creating a directory and subdirectory on Linux\/Ubuntu 22.04 LTS.<\/p>\n<h2><a id=\"post-21845-_ljks07h0rocp\"><\/a>Prerequisites<\/h2>\n<p>In order to follow this article, you will require:<\/p>\n<ul>\n<li>A system with Linux\/Ubuntu 22.04 LTS Installed.<\/li>\n<li>Basic knowledge of command line usage.<\/li>\n<\/ul>\n<h2><a id=\"post-21845-_vwi4ezl9toa3\"><\/a>How to Create\/Make a Directory and Subdirectory in Linux\/Ubuntu?<\/h2>\n<p>Directories and subdirectories can be created In Linux\/Ubuntu 22.04 by following two methods:<\/p>\n<ul>\n<li>Method 1: Create a Directory and Subdirectory by Using Command Line<\/li>\n<li>Method 2: Create a Directory and Subdirectory by Using Ubuntu\u2019s Desktop\u2019s File Manager<\/li>\n<\/ul>\n<p>We will discuss both methods in the following sections.<\/p>\n<h2><a id=\"post-21845-_alafyif9qhdt\"><\/a>Method 1: Create a Directory and Subdirectory by Using Command Line<\/h2>\n<p><strong>mkdir (Make Directory) <\/strong>command is used to create directories and subdirectories using the command line in Unix\/Linux systems. One or more directory names can be passed as arguments to mkdir command. The syntax for the mkdir command for creating a directory and subdirectory is as follows:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">mkdir<\/span> <span class=\"br0\">&#91;<\/span>Option<span class=\"br0\">&#93;<\/span> <span class=\"br0\">&#91;<\/span>Directory Name<span class=\"br0\">&#93;<\/span><\/div><\/div>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">mkdir<\/span> <span class=\"br0\">&#91;<\/span>Option<span class=\"br0\">&#93;<\/span> <span class=\"br0\">&#91;<\/span>Directory Name<span class=\"br0\">&#93;<\/span> <span class=\"sy0\">\/<\/span> <span class=\"br0\">&#91;<\/span>Sub Directory Name<span class=\"br0\">&#93;<\/span><\/div><\/div>\n<p><strong>mkdir<\/strong> offers various options for creating directories that are demonstrated in the following sections:<\/p>\n<h2><a id=\"post-21845-_y6vrjntwrfid\"><\/a>How to Create\/Make a New Directory in Linux?<\/h2>\n<p>A new directory is created by passing single or multiple directory names as arguments to mkdir command. For example, if we want to create a directory by the name of \u201cdirectory1\u201d we can use the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">mkdir<\/span> directory1<\/div><\/div>\n<p>We can verify the new directory creation by executing the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">ls<\/span> <span class=\"re5\">-l<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1438\" height=\"1122\" class=\"wp-image-21846\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-1.png 1438w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-1-300x234.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-1-1024x799.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-1-768x599.png 768w\" sizes=\"auto, (max-width: 1438px) 100vw, 1438px\" \/><\/p>\n<p>This will create a directory in the current working directory. If a user wants to create a directory at any other location, the absolute path must be provided, as shown below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">mkdir<\/span> <span class=\"sy0\">\/<\/span>home<span class=\"sy0\">\/<\/span>linuxuser<span class=\"sy0\">\/<\/span>Documents<span class=\"sy0\">\/<\/span>directory1<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1598\" height=\"180\" class=\"wp-image-21847\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-2.png 1598w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-2-300x34.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-2-1024x115.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-2-768x87.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-2-1536x173.png 1536w\" sizes=\"auto, (max-width: 1598px) 100vw, 1598px\" \/><\/p>\n<p>From the above image, it can be seen that the new directory is created at the specified location.<\/p>\n<h2><a id=\"post-21845-_7cvjm58gjlut\"><\/a>How to Create Multiple Directories?<\/h2>\n<p>Users can use the mkdir command several times to create multiple directories, but this is not a good approach as it consumes a lot of time. This can be avoided by adding directory names with mkdir command using a space-separated syntax. For example, if we want to create three directories, directory1, director2, and director3, we will run the following \u201cmkdir\u201d command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">mkdir<\/span> directory1 directory2 directory3<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1602\" height=\"324\" class=\"wp-image-21848\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-3.png 1602w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-3-300x61.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-3-1024x207.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-3-768x155.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-3-1536x311.png 1536w\" sizes=\"auto, (max-width: 1602px) 100vw, 1602px\" \/><\/p>\n<p>We can verify from the above image that three directories, i.e., directory1, directory2, and directory3 are created.<\/p>\n<h2><a id=\"post-21845-_xvfmtab5lqcs\"><\/a>How to Create Subdirectories in Linux\/Ubuntu?<\/h2>\n<p>Subdirectories are directories within a directory. We can create a sub-directory and multiple sub-directories by using the following commands:<\/p>\n<h3><a id=\"post-21845-_fz55mqgqni6m\"><\/a>Create Single Sub-Directory:<\/h3>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">mkdir<\/span> directory<span class=\"sy0\">\/<\/span>subdirectory1<\/div><\/div>\n<h3><a id=\"post-21845-_qkk5kibny1pr\"><\/a>Create Multiple Sub-Directories:<\/h3>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">mkdir<\/span> directory<span class=\"sy0\">\/<\/span><span class=\"br0\">&#123;<\/span>subdirectory2,subdirectory3,subdirectory4<span class=\"br0\">&#125;<\/span><\/div><\/div>\n<h3><\/h3>\n<h3><a id=\"post-21845-_2yhnwmue2vlg\"><\/a>Output<img loading=\"lazy\" decoding=\"async\" width=\"1778\" height=\"716\" class=\"wp-image-21849\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-4.png 1778w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-4-300x121.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-4-1024x412.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-4-768x309.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-4-1536x619.png 1536w\" sizes=\"auto, (max-width: 1778px) 100vw, 1778px\" \/><\/h3>\n<p>From the above image, we can see that sub-directories are created successfully.<\/p>\n<h2><a id=\"post-21845-_j4lj41be0z6e\"><\/a>How to Create a Parent Directory?<\/h2>\n<p>A <strong>parent directory<\/strong> is a directory that is one level up from the current directory. The \u201c<strong>-p flag<\/strong>\u201d is used to create a parent directory. For example, we can create a directory Country and subdirectories Provinces, Districts, and Cities within it. \u201c-p flag\u201d creates parent directories along with the target directory if it is not there:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">mkdir<\/span> <span class=\"re5\">-p<\/span> Country<span class=\"sy0\">\/<\/span>Provinces<span class=\"sy0\">\/<\/span>Districts<span class=\"sy0\">\/<\/span>Cities<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1776\" height=\"718\" class=\"wp-image-21850\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-5.png 1776w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-5-300x121.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-5-1024x414.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-5-768x310.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-5-1536x621.png 1536w\" sizes=\"auto, (max-width: 1776px) 100vw, 1776px\" \/><\/p>\n<p>The above image shows that the parent directories and the target directory are created successfully.<\/p>\n<h2><a id=\"post-21845-_vrmrb5vg089p\"><\/a>How to Create a Directory with Specific Permissions in Linux\/Ubuntu?<\/h2>\n<p>By default, all directories have <strong>rwx<\/strong> permissions, i.e., read, write, and execute permission for a user. We can specify mode\/permissions while creating a new directory using the \u201c<strong>-m flag<\/strong>\u201d. For example, if we want to create a new directory with the user who created the directory to be able to use it, we will use the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">mkdir<\/span> <span class=\"re5\">-m<\/span> <span class=\"nu0\">700<\/span> directory1<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1412\" height=\"250\" class=\"wp-image-21851\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-6.png 1412w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-6-300x53.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-6-1024x181.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-6-768x136.png 768w\" sizes=\"auto, (max-width: 1412px) 100vw, 1412px\" \/><\/p>\n<p>The mode can only be specified while creating a directory. After a directory is created, the mode\/permissions can only be changed via the <strong>chmod <\/strong>command.<\/p>\n<h2><a id=\"post-21845-_v3oa31g9dl4l\"><\/a>How to Create Nested Directory and Subdirectories Tree With One Command<\/h2>\n<p>mkdir allows us to create a nested directory and subdirectory tree structures by using one command. An example is shown below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">mkdir<\/span> <span class=\"re5\">-p<\/span> OS<span class=\"sy0\">\/<\/span><span class=\"br0\">&#123;<\/span>Windows<span class=\"sy0\">\/<\/span><span class=\"br0\">&#123;<\/span>Windows11,Windows10<span class=\"br0\">&#125;<\/span>,macOs<span class=\"sy0\">\/<\/span><span class=\"br0\">&#123;<\/span>Monterey,Ventura,Catalina<span class=\"br0\">&#125;<\/span>,Linux<span class=\"sy0\">\/<\/span><span class=\"br0\">&#123;<\/span>Ubuntu, Debian,RedHat<span class=\"br0\">&#125;<\/span><span class=\"br0\">&#125;<\/span><\/div><\/div>\n<p>We can see that a nested directory \u201cOS\u201d is created which has three subdirectories: Windows, macOS, and Linux subdirectories within it. Windows, macOS, and Linux further have 2, 3, and 3 sub-directories respectively:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1776\" height=\"888\" class=\"wp-image-21852\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-7.png 1776w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-7-300x150.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-7-1024x512.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-7-768x384.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-7-1536x768.png 1536w\" sizes=\"auto, (max-width: 1776px) 100vw, 1776px\" \/><\/p>\n<p>Additionally, it is recommended not to use spaces within {} while using mkdir command as it will create directories with special characters.<\/p>\n<h2><a id=\"post-21845-_hcnd25amzdai\"><\/a>Method 2: Create a Directory and Subdirectory by Using Ubuntu Desktop File Manager<\/h2>\n<p>We can create a directory and sub-directory with ease using Ubuntu 22.04 LTS Desktop file manager. For this purpose, follow the steps mentioned in the following sections:<\/p>\n<h2><a id=\"post-21845-_m3svh2m0pcjg\"><\/a>How to Create a Directory Using Ubuntu Desktop File Manager?<\/h2>\n<p>To create a new directory, first, navigate to the location where you desire to create a directory. A new directory can be created by utilizing a mouse\u2019s \u201cright-click\u201d. It will generate a drop-down menu list. From the drop-down menu list, select the \u201cNew Folder\u201d option as shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1780\" height=\"1090\" class=\"wp-image-21853\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-8.png 1780w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-8-300x184.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-8-1024x627.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-8-768x470.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-8-1536x941.png 1536w\" sizes=\"auto, (max-width: 1780px) 100vw, 1780px\" \/><\/p>\n<p>We will be prompted to enter the \u201cDirectory Name\u201d. After typing the directory name, we can press the \u201cCreate\u201d button to create the directory: <img loading=\"lazy\" decoding=\"async\" width=\"1782\" height=\"1096\" class=\"wp-image-21854\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-9.png 1782w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-9-300x185.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-9-1024x630.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-9-768x472.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-9-1536x945.png 1536w\" sizes=\"auto, (max-width: 1782px) 100vw, 1782px\" \/><\/p>\n<p>From the following image, you can see that the directory named \u201cDirectory1\u201d has been successfully created.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1782\" height=\"1092\" class=\"wp-image-21855\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-10.png 1782w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-10-300x184.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-10-1024x628.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-10-768x471.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-10-1536x941.png 1536w\" sizes=\"auto, (max-width: 1782px) 100vw, 1782px\" \/><\/p>\n<h2><a id=\"post-21845-_3dy3183pvub\"><\/a>How to Create a Sub-directory Using Ubuntu Desktop File Manager?<\/h2>\n<p>A sub-directory is created similarly as the directory is created. We can navigate inside a specific directory and create a sub-directory by mouse \u201cright-click\u201d. After that, we can select the \u201cNew Folder\u201d option as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1782\" height=\"1100\" class=\"wp-image-21856\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-11.png 1782w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-11-300x185.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-11-1024x632.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-11-768x474.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-11-1536x948.png 1536w\" sizes=\"auto, (max-width: 1782px) 100vw, 1782px\" \/><\/p>\n<p>We will be prompted to name the sub-directory. After entering the name, we can press the \u201cCreate\u201d button:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1784\" height=\"1096\" class=\"wp-image-21857\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-12.png 1784w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-12-300x184.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-12-1024x629.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-12-768x472.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-12-1536x944.png 1536w\" sizes=\"auto, (max-width: 1784px) 100vw, 1784px\" \/><\/p>\n<p>As seen from the above image, the sub-directory is successfully created:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1780\" height=\"1104\" class=\"wp-image-21858\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-13.png 1780w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-13-300x186.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-13-1024x635.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-13-768x476.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21845-13-1536x953.png 1536w\" sizes=\"auto, (max-width: 1780px) 100vw, 1780px\" \/><\/p>\n<p>This sums up the creation of a directory and subdirectory in Linux\/Ubuntu.<\/p>\n<h2><a id=\"post-21845-_k4r3ojha6hv3\"><\/a>Conclusion<\/h2>\n<p>Directories and sub-directories are created in Linux\/Ubuntu systems either by command line using the \u201cmkdir\u201d command or by using Ubuntu Desktop File Manager. The \u201cmkdir\u201d command enables the creation of a directory\/sub-directory, and multiple directories\/sub-directories. Additionally, it enables options for creating a parent directory, specifying permissions while creating a directory, and creating nested directory\/sub-directory structures. In this article, different ways of creating a directory and subdirectory on Linux\/Ubuntu 22.04 LTS were demonstrated.<\/p>","protected":false},"excerpt":{"rendered":"<p>Directories and sub-directories are created in Linux\/Ubuntu systems either by command line using the \u201cmkdir\u201d command or by using Ubuntu Desktop File Manager. <\/p>","protected":false},"author":110,"featured_media":22467,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1049,2],"tags":[],"class_list":["post-21845","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-commands","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/21845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=21845"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/21845\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/22467"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=21845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=21845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=21845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}