Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I'm trying to copy all of the hidden files to a directory. The problem is I can't copy it into a new folder. I get Permission denied error. How do I fix this?
cp -rf /usr/include /cse220-p01
Your user does not have the permission to write in the directory you are trying to copy the file. You can use root account or try with sudo -u "user" cp file path.
sudo -u "user" cp file path
Required, but never shown