mkdir命令会突然失效
You create folders using the mkdir
command:
您可以使用mkdir
命令创建文件夹:
mkdir fruits
You can create multiple folders with one command:
您可以使用一个命令创建多个文件夹:
mkdir dogs cars
You can also create multiple nested folders by adding the -p
option:
您还可以通过添加-p
选项来创建多个嵌套文件夹:
mkdir -p fruits/apples
Options in UNIX commands commonly take this form. You add them right after the command name, and they change how the command behaves. You can often combine multiple options, too.
UNIX命令中的选项通常采用这种形式。 您在命令名称后立即添加它们,它们会更改命令的行为。 您通常也可以组合多个选项。
You can find which options a command supports by typing man <commandname>
. Try now with man mkdir
for example (press the q
key to esc the man page). Man pages are the amazing built-in help for UNIX.
您可以通过输入man <commandname>
来找到命令支持的选项。 例如,现在尝试使用man mkdir
(按q
键可退出手册页)。 手册页是UNIX的出色内置帮助。
mkdir命令会突然失效