How does ubuntu delete a folder?

Source: Internet
Author: User
RM [Options] File
-F,--force brute Force Delete, does not require confirmation
-I require confirmation for each deletion of a file or access to a subdirectory
-I ask for confirmation before deleting more than three files or recursively deleting a file
-R,-r Recursive Delete subdirectories
-D,--dir Delete empty directory
-V,--verbose Display Delete results
============================================================================
The following are commonly used:
rm-d Directory name #删除一个空目录
RmDir Directory name #删除一个空目录
Rm-r Directory name #删除一个非空目录
RM file name #删除文件

Go to that folder in the terminal, and then execute:
sudo rm-rf folder name
If it doesn't work, use it.
sudo chmod 777 folder name
sudo rm-rf folder name

How does ubuntu delete a folder?

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.