-1
我需要创建一个目录层,但我只能使用1个命令,我该怎么做?目录中的linux mkdir目录
我目前在一个名为'Linux的目录,现在我要在这里创建了一个名为“A”目录,并在此directorie我要创建一个名为“B”的目录。
日Thnx
我需要创建一个目录层,但我只能使用1个命令,我该怎么做?目录中的linux mkdir目录
我目前在一个名为'Linux的目录,现在我要在这里创建了一个名为“A”目录,并在此directorie我要创建一个名为“B”的目录。
日Thnx
你可以试试:
mkdir --parents a/b
mkdir -p a/b/c/d
-p Create intermediate directories as required. If this option is not specified, the full path prefix of
each operand must already exist. On the other hand, with this option specified, no error will be
reported if a directory given as an operand already exists. Intermediate directories are created with
permission bits of rwxrwxrwx (0777) as modified by the current umask, plus write and search permission
for the owner.