Solution to Operationnotpermitted error when deleting a file
Source: Internet
Author: User
Solution to the Operationnotpermitted error when deleting a file-Linux general technology-Linux technology and application information. for details, refer to the following. When some files are to be deleted in Linux, an error is prompted, for example, handling the Operation not permitted error prompt.
The super user root is used. The system will tell you that the operation is not allowed. Is there a problem with Linux? No. if you use the lsattr command, the answer is displayed.
This attribute is used to protect important files from being deleted. Generally, the system administrator can determine whether the file can be deleted by using these commands. To add more protection to a file, run the following command:
Chattr + I filename
Command to delete the file. At the same time, such files cannot be edited or modified. Only the root user can use the chattr command. Similar to Windows file systems, most files that cannot be deleted at will have their own principles. even if you know how to delete them, you should think twice before you proceed.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.