search

Home  >  Q&A  >  body text

Linux cannot copy problem

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梦2756 days ago1095

reply all(5)I'll reply

  • 天蓬老师

    天蓬老师2017-06-12 09:26:41

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

    reply
    0
  • PHP中文网

    PHP中文网2017-06-12 09:26:41

    sudo cp -rf /path/to/source_file/ /path/to/target_file(path)

    reply
    0
  • 天蓬老师

    天蓬老师2017-06-12 09:26:41

    chmod 777 nginx.conf

    reply
    0
  • 学习ing

    学习ing2017-06-12 09:26:41

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

    reply
    0
  • PHP中文网

    PHP中文网2017-06-12 09:26:41

    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)

    reply
    0
  • Cancelreply