Home >System Tutorial >LINUX >What is the operation of creating a new folder in linux command
Under Linux, you can use the mkdir command to create a new folder. Options include: -p (recursively create directories) -v (show details) -m (set file permissions). For example, mkdir test_dir creates a folder named test_dir, mkdir -p test_dir/sub_dir creates subdirectories recursively with -p, and mkdir -m 755 new_dir creates a folder named new_dir and sets permissions to 755.
Linux command to create a new folder operation
In the Linux operating system, you can use ## to create a new folder #mkdir command.
Command syntax:
<code>mkdir [选项] 文件夹名</code>
Options:
: recursive creation Directories (create parent directories if necessary)
: Display details for each directory created
: Set directory files Permissions
Example:
<code>mkdir test_dir</code>
option:
<code>mkdir -p test_dir/sub_dir</code>
<code>mkdir -m 755 new_dir</code>
Note:
The above is the detailed content of What is the operation of creating a new folder in linux command. For more information, please follow other related articles on the PHP Chinese website!