PrefaceI have become more and more interested in Linux in recent days. The desire to see Tuckers again became stronger and stronger. Ever since it left me Until now I am still confused. I can't find it and I don't have any contact information. But the fire in my heart has been ignited. I started studying again under the moonlight. 1. Basic knowledge of file conceptsThe above commands are all operations on files or folders. So here comes the question: To sum it up simply, files are those with extensions. Folders are those without extensions. The directory is the information in the address bar. But please note that in Windows system, you may not check the option to view file extensions. The extension name will not be displayed.
OK, now that you know the basics, So, Interested students can find the answer by themselves~ 2. mkdir CommandThrough the above understanding, We know that it is impossible for any system to put all files in one folder (directory). So how do we manage Linux files? The first thing to do is to create a folder. Storing your own files in categories also makes it easier to find them later. mkdir ( make directory ) is used to create a directory. Parameters Full Parameter Description -p–parents Recursively create multiple directories -m–mode=MODE Set directory permissions while creating the directory -v–verbose Display the directory creation process -Z Set the security context mkdir folder name You can see that you can create folders directly, but you cannot create multiple levels. The default permissions are 777 minus the mask mkdir -p multi-level directory If there are multiple levels of folders that need to be created, this is a good and fast way to do it. mkdir -m 755 folder name What should I do if I want to grant corresponding permissions to the created folder? This parameter makes you want to stop. mkdir -v folder name Just output what folders were created. Love should be expressed out loud. mkdir -Z folder name Set the security context, which is effective when SELinux is used; Currently there is no difference from normal creation. This is the end of this article about the detailed explanation of the mkdir command in Linux learning. For more relevant Linux mkdir command content, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Slot arrangement and usage analysis in Vue
>>: Several implementation methods of the tab bar (recommended)
This article example shares the specific code of ...
Business scenario: Use vue + element ui's el-...
Table of contents Preface Rolling principle accom...
Table of contents 1. Installation Environment 2. ...
This article uses the element official website an...
Table of contents 1. What is Set 2. Set Construct...
Here is a common one-click performance test scrip...
You need to apply CSS to div or span at the same t...
Simple application deployment 1. Directory struct...
Recently, when upgrading the Zabbix database from...
Since I have parsed HTML before, I want to use Vu...
If you want to change your host name, you can fol...
This article shares the specific code of Vue to a...
1. Check the software installation path: There is...
Table of contents Preface Problem Description Cau...