Home  >  Article  >  Operation and Maintenance  >  What to do if Linux deletion permission is not enough

What to do if Linux deletion permission is not enough

WBOY
WBOYOriginal
2022-05-23 11:20:3211720browse

Solution to insufficient deletion permissions in Linux: 1. Use "chmod 777 file name" to add read and write permissions to the file to delete it; 2. Use root identity and use "cd path" with "rm -rf Files or folders that need to be deleted can be deleted using the command.

What to do if Linux deletion permission is not enough

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

What to do if Linux deletion permission is not enough

The first method: the folder is locked

Use the command sudo chmod 777 test to give this test folder Read and write permissions.

You can click the lock on the folder, and then you can delete it

Second type: The folder is not locked, but it still cannot be deleted, and it prompts that the permissions are insufficient

In this case, the properties and permissions of the folder are as follows.

What to do if Linux deletion permission is not enough

Without permission, naturally it cannot be deleted. But you can do it as root

1. Enter sudo -i to enter root

2. cd to select the path

3. rm -rf file to delete the file or folder

What to do if Linux deletion permission is not enough

Recommended learning: Linux video tutorial

The above is the detailed content of What to do if Linux deletion permission is not enough. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn