How to remove Cygwin completely from Windows

9th September 2012. 31243 views. Software

Remember needing Cygwin back in the day, but 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 way to remove it. Cygwin protects the files with some security stuff. That’s just idiotic, having no access to my own files!

I’m always logged in as native Administrator – no other users present. What I tried next was to navigate to that folder through my Linux machine (cifs mounted filesystem), but got “permission denied” error there as well, even with the magic command:

sudo rm -rf /media/windows/cygwin

Here’s how to remove Cygwin once and for all.

You will need

  • Cygwin
  • cmd.exe
  • 2 minutes

Run cmd, navigate to C:\ (or other disk, if you have installed it in different path).

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

takeown /r /d y /f cygwin

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

icacls cygwin /t /grant Everyone:F

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

rmdir /s /q cygwin

Good bye Cygwin!

最新文章

  1. rem的使用
  2. 精妙SQL语句
  3. [轉載]史上最强php生成pdf文件,html转pdf文件方法
  4. Unity 坐标系
  5. 使用iBATIS3.0完成增删改查
  6. 修改首页的main里面的内容
  7. Android搞事篇——使用Intent跳转界面
  8. SQL2012导出的脚本没有if exists判断
  9. UWP 判断Windows10系统版本
  10. [翻译]编写高性能 .NET 代码 第一章:工具介绍 -- Visual Studio
  11. [CQOI2013]新Nim游戏
  12. selenium-启动浏览器(二)
  13. 整数中1出现的次数(从1到n整数中1出现的次数)(python)
  14. LeetCode: Largest Number 解题报告 以及Comparator, CompareTo 应用
  15. IPC 之 AIDL 的使用
  16. MView的DDL查找:
  17. Python3之pymysql导入mysql
  18. spring boot 中使用redis session
  19. HibernateDaoSupport与JdbcDaoSupport
  20. JDK的安装与卸载

热门文章

  1. 关闭浏览器或者关闭使用window.open打开的页面时添加监听事件
  2. wpf样式与行为
  3. C++/CLI 创建WPF程序
  4. Prime Ring Problem HDU - 1016 (dfs)
  5. mysql与hibernate选择某个字段的最大值,比如表中的最大id
  6. NFS挂载服务具体的实施方案
  7. nyoj zb的生日【背包型DFS/选or不选】
  8. Oracle 查询库中所有表名、字段名、表名说明、字段名说明(原创)
  9. 【模板】倍增LCA [2017年5月计划 清北学堂51精英班 Day3]
  10. Leetcode657.Robot Return to Origin机器人能否返回原点