Home>Article>Operation and Maintenance> How to delete files in ubuntu

How to delete files in ubuntu

Jennifer Aniston
Jennifer Aniston Original
2021-05-17 11:31:50 37055browse

How to delete files in Ubuntu: 1. Use the "sudo rm -r folder name" command to forcefully delete the folder and prompt; 2. Use the "sudo rm -rf folder name" command to forcefully delete the folder and prompt No prompt.

How to delete files in ubuntu

The operating environment of this article: ubuntu 16.04 system, DELL G3 computer

Ubuntu file deletion command

-r means force Delete, -f means no prompt

Force deletion of the folder and prompt

sudo rm -r 文件夹名

Force deletion of the folder without prompt (the most violent)

sudo rm -rf 文件夹名

Recommendation: "linux Video tutorial

The above is the detailed content of How to delete files in ubuntu. 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