"NS2" How to remove Cygwin completely from Windows

Source: Internet
Author: User

How to remove Cygwin completely from Windows

9th September 2012. 31243 views. Software

Remember needing Cygwin back on the day and after using it to my only occasion forgot the software-libraries completely? That happened to me. I have installed Windows 7 again, and found my C:\cygwin folder with all the files. Wanted to get rid of it, but no way–a mysterious "permission denied" when deleting the files. It seems there ' s no-to-remove it. Cygwin protects the files with some security stuff. That's just idiotic, have no access to my own files!

I ' m always logged in as native Administrator–no and other users present. What I tried next is to navigate to the folder through my Linux machine (CIFS mounted filesystem), but got "permission D Enied "Error there as well, even with the Magic command:

-rf /media/windows/cygwin

Here's how-to-remove Cygwin once and for all.

You'll need

    • Cygwin
    • Cmd.exe
    • 2 minutes

Run cmd, navigate to C + + (or other disk, if you had installed it in different path).

This command takes ownership recursive of the folder, without asking anything:

/r /d y /f cygwin

This command gives full Access to Everyone recursively in the folder:

/t /grant Everyone:F

And finally, the command which deletes it all and removes Cygwin:

/s /q cygwin

Good bye cygwin!

"NS2" How to remove Cygwin completely from Windows

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.