/bin/mkdir: Argument list too long
时间: 2024-01-07 09:05:40 浏览: 82
This error message occurs when you try to create a directory with too many arguments. The maximum number of arguments that can be passed to the mkdir command is limited by the operating system, and typically depends on the amount of available memory.
To resolve this issue, you can try using wildcards or regular expressions to create multiple directories with a single command. For example, instead of specifying each individual directory name, you could use the following command to create multiple directories at once:
```
mkdir dir1 dir2 dir3 dir4 dir5
```
Alternatively, you could create a text file containing a list of directory names and use the xargs command to create the directories from the file:
```
cat dir_list.txt | xargs mkdir
```
This will create all the directories listed in the dir_list.txt file.
阅读全文