这可能是我的大脑无法工作的那些日子之一,或者我非常愚蠢。我一直在尝试复制文件(实际上是目录 .app、.bundle 等),但始终收到错误消息“没有这样的文件或目录”。我已经尝试了不使用 / 斜线、使用文件名、不使用文件名的所有可能组合。帮助!:/
原目录:~/desktop/directory/file.bundle
目标目录:/library/application\ support/directory
所以换句话说,file.bundle
需要进入那个 ^ 目录
试过:
# cp $HOME/Desktop/directory/file.bundle /library/application\ support/directory
cp: /Users/airhead/Desktop/directory/file.bundle: No such file or directory
# cp -rf ~/desktop/directory/file.bundle /library/application\ support/directory/
cp: /Users/airhead/Desktop//directory/file.bundle: No such file or directory
# cd ~/
# cp -r directory/file.bundle /library/application\ support/directory/file.bundle
cp: /Users/airhead/Desktop/directory/file.bundle: No such file or directory
# cp -Rf $HOME"/directory/file.bundle" "/library/application\ support/directory/"
cp: directory /Library/Application\ Support/directory/ does not exist
附加信息:
# ls -la $HOME/Desktop/directory/
ls: /Users/airhead/Desktop/directory/: No such file or directory