2014-10-12 90 views
-1

我需要創建一個目錄層,但我只能使用1個命令,我該怎麼做?目錄中的linux mkdir目錄

我目前在一個名爲'Linux的目錄,現在我要在這裏創建了一個名爲「A」目錄,並在此directorie我要創建一個名爲「B」的目錄。

日Thnx

回答

2

你可以試試:

mkdir --parents a/b 
1
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.