Linux cannot copy problem
过去多啦不再A梦
过去多啦不再A梦 2017-06-12 09:24:41
0
5
1059

If this program is installed under root, then after installation, I find that its configuration file cannot be copied and pasted manually. Do I need to use commands under root to copy and paste in the current directory? Is that so? But I found out why copying like this doesn’t work?

过去多啦不再A梦
过去多啦不再A梦

reply all(5)
Peter_Zhu

cp /etc/nginx/nginx.conf /etc/nginx
Pay attention to spaces.

洪涛
sudo cp -rf /path/to/source_file/ /path/to/target_file(path)
Peter_Zhu

chmod 777 nginx.conf

学习ing

The error message is insufficient permissions. You can change the file permissions and it should be OK

Ty80

Obviously you wrote the wrong command, cp /etc/nginx/nginx.conf /path/to/your/want/cp/path you are missing the following path.

And your command is: cp /etc/nginx/nginx.conf (a path is required here)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template