cp: cannot create regular file: Operation not permitted
时间: 2023-12-18 09:17:54 浏览: 452
This error message is typically encountered when trying to copy or move files to a directory where the user does not have appropriate permissions. This may occur, for example, when trying to copy files to a system folder or directory owned by another user.
To resolve the issue, you can try running the command with elevated privileges by using the sudo command. Alternatively, you may need to change the ownership or permissions of the destination directory to allow your user account to write to it.
For example, you can try running the following command with sudo:
sudo cp /path/to/source/file /path/to/destination/directory
If you are still encountering issues, you may need to consult the system administrator or review the file permissions and ownership settings for the target directory.
阅读全文
相关推荐



















