Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
尝试这样做:
ftp -nvd server01 <<- END user user01 password123 mkdir -p /dirA/dirB/dirC/dirD/
预期结果:
/dirA/dirB/dirC/dirD/ 应该在 server01 中创建
实际结果:
-p 目录在 server01 的主目录中创建
问题是“ -p”被视为目录名称,而不是 mkdir 命令的选项。
-p
提前致谢。
The dumb ftp client does not support -p as an option argument to mkdir, but if you require this feature you can use another client which does, e.g. lftp.
ftp
mkdir
lftp