Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use mkdir command in Ubuntu system

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to use the mkdir command in the Ubuntu system, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

1. First, let's open the Ubuntu terminal and use the ls command to see what files and folders are under the current folder, as shown in the following figure.

2. Then we use mkdir to create a folder A, as shown in the following figure. Just add the folder name after the mkdir command.

3. Next, we will use ls to list the folders and files. As shown in the following figure, the A folder we created is already below.

4. If you want to create a multi-level folder, as shown in the following figure, it will prompt you that you cannot create it because it did not find the B folder.

5. At this time, as long as we add a p parameter after the multi-level folder, as shown in the following figure, what he means is that if the folder is not found, it will be created automatically

6. Then we use the tree command to look at the current folder structure. As shown in the following figure, the multi-level folder we created has been created.

7, to sum up, when using mkdir to create a folder, we must pay attention to the use of the parameter p, which is a very good parameter for creating multi-level folders.

The above is how to use the mkdir command in the Ubuntu system. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report