无法cp文件夹


1

我试图使用终端来复制让我们说文件3然后(重命名是文件)来自 ~/file1/file2/file3file1 但每次我尝试这样做,都会失败。

我的命令是

cp -r ~/file1 /file2/file3  /../../file

我收到错误说:

cp: ../../file: Permission denied
cp: file1/file2/file3: unable to copy extended attributes to ../../file: Permission denied

有人能告诉我如何才能让它发挥作用吗?

Answers:


3

在将目标定义为时,您正尝试从文件系统根目录向上导航 /../../file。您是否尝试过使用目标文件的绝对路径?

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.