Solution to the problem that centos cannot paste files:
1. There is a "testfile" in the centos user directory A folder containing multiple files.
#2. Right-click "Copy" and then "Paste", and a copy error prompt window will appear.
3. In some places, the right-click "Paste" button is gray and the file cannot be copied at all. These are mostly file permission issues. .
#4. So in order to avoid these situations, we usually right-click on the folder and "Open in Terminal".
5. Switch to the "root" user and use "chmod -R" to give the folder testfile to be copied and the files in it read and write permissions, for example, directly give 777.
chmod-R 777 testfile
6. Then use the "cp -R" command to copy the folder testfile and the files inside , copy to the required location, such as home.
cp-R testfile/home
7. Then we can find the copied testfile folder under home, inside The files are in there too.
Recommended tutorial: "centos tutorial"
The above is the detailed content of What should I do if centos cannot paste files?. For more information, please follow other related articles on the PHP Chinese website!