我需要制作一个目录,但我只能使用1个命令,我该怎么办?
我目前在名为'linux'的目录中,现在我必须在这里创建一个名为'a'的目录,在这个directorie中我必须创建一个名为'b'的目录。
日Thnx
答案 0 :(得分:2)
您可以尝试:
mkdir --parents a/b
答案 1 :(得分:2)
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.