014-Linux cannot create a normal directory under the root directory, cp: cannot create a normal file'etc/redis/: not a directory

cp: Unable to create ordinary file'etc/redis/: not a directory

The current user cannot automatically create a file directory under the root directory because the system has insufficient permissions when copying files.
Run command sudo nautilus
A file manager with administrator rights will automatically pop up, and you can perform interface operations.
In this way, files can be copied without switching to root.
nautilus:

The graphical desktop includes a file manager called Nautilus. It provides you with a graphical display of system and personal files. However, Nautilus is more than just a visual list of files, it also allows you to configure the desktop from a comprehensive interface; configure your Red Hat Linux system; browse photo albums; access network resources and more. In a word, Nautilus has become the "shell" of your entire desktop.

This command is to open a window with root privileges to manage files. For example, if you click directly on the computer, there are many folders and files that can only be operated by the root user, so you cannot paste, cut, delete, etc. to the folder or file, nor can you create a new file, but you can use the nautilus command. Up

Guess you like

Origin blog.csdn.net/mmmmmCJP/article/details/110672400