Mkdir command, mkdir
Mkdir -- create a new directory
Make directories
Command path:/bin/mkdir
Example 1:
# Mkdir/tmp/japan
Create a an subdirectory under the/tmp directory
Example 2:
# Mkdir-p/tmp/tumblr/xiaoshiping
-P is used for
The recent write code has a need to traverse every file in the directory and get the absolute path to the file,We know that there are system commands in Linux C + + so I made a log in the code, and then I read each line of the log file, and then I
The Linux mkdir command is used to create a directory of the specified name, requiring the user who created the directory to have write permissions in the current directory, and the specified directory name cannot be a directory that is already in
In Linux the basic commands are written as: command [ parameter Options ] [ file or path ] The command to be used [ This is the one that needs to be variable but must be matched with the command used ] [ the file or path to be processed or consulted
Here is the information I collated from the Internet, will give you a detailed introduction of PHP function mkdir specific usage, I hope to have this need to help friends.
Project development is unavoidable to create folders on the server, such as
The following is my data from the Internet, will give you a detailed introduction of PHP function mkdir specific use, I hope that there is a need for friends to help.
In the development of the project, it is unavoidable to create folders on the
1. Command IntroductionThe Linux mkdir command is used to create a directory of the specified name, requiring the user who created the directory to have write permissions in the current directory, and the specified directory name cannot be a
File. mkdirs can create files under the L2 directory.
File. mkdir can create only one file in the second-level directory and only in the existing Directory. if the path does not exist, call file. mkdirs () method to create the directory path to
When we want to add a multilevel catalog to our website, we can use the
PHP function mkdir parameters and descriptions
Path is required. Specifies the name of the directory to create.Mode required. Set permissions. The default is 0777.Recursive
Project development is unavoidable to create folders on the server, such as when uploading images of the directory, template parsing directory, and so on. This is not the current project to use this, so summed up a few loops to create a hierarchical
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.