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

Which is the command to create directory in linux

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

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the relevant knowledge of "which is the command to create a directory in linux". The editor shows you the operation process through an actual case. The method of operation is simple and fast, and it is practical. I hope that this article "which command to create a directory in linux" can help you solve the problem.

The linux create directory command is "mkdir". The method of creating a directory: 1, execute the "cd directory name" command to change to the parent directory; 2, in the parent directory, execute the "mkdir [- mp] directory name" command to create a new directory. The option "- m" is used to manually configure permissions for the created directories, and "- p" is used to recursively create all directories.

The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.

The create directory command in linux is "mkdir".

The mkdir command, which stands for make directories, is used to create a new directory, which is available to all users.

The basic format of the mkdir command is:

Mkdir [- mp] directory name

The-m option is used to manually configure permissions for the created directory instead of using the default permissions.

The-p option recursively creates all directories. Take creating / home/test/demo as an example. By default, you need to create each directory layer by layer, while using the-p option, the system will automatically create / home, / home/test and / home/test/demo for you.

To create a directory in linux:

1. Use the cd command to change to the parent directory

2. Use the mkdir command to create a directory, followed by the directory name.

You can use the ls command to view the newly created directory.

This is the end of the content about "which is the command to create a directory in linux". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

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