Delete folder (original + go) in Ubuntu

Source: Internet
Author: User

Reprint please specify the source:

Http://www.cnblogs.com/darkknightzh/p/5638030.html

Reference URL:

Http://zhidao.baidu.com/link?url=A19OjrgqwAV0fubnQnwCut3iPxzVzzDUM8ToqV6wsy7AR5boWeYE_7ptzr50jPyv5-Y_uHMDslilCR3xXJ7Wbq

RM [Options] File
-F,--force forcibly removed, no confirmation required
-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 deletion of 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:
SUDORM-RF folder name
If it doesn't work, use it.
Sudochmod 777 folder name
SUDORM-RF folder name

Ps:

The first two days you want to delete a folder containing files, directly remove the prompt permission is not enough.

Failed with "Sudochmod 777 folder name"

Successful using "Sudorm-rf folder name"

Delete folder (original + go) in Ubuntu

Related Article

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.