【NS2】How to remove Cygwin completely from Windows
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!
最新文章
- rem的使用
- 精妙SQL语句
- [轉載]史上最强php生成pdf文件,html转pdf文件方法
- Unity 坐标系
- 使用iBATIS3.0完成增删改查
- 修改首页的main里面的内容
- Android搞事篇——使用Intent跳转界面
- SQL2012导出的脚本没有if exists判断
- UWP 判断Windows10系统版本
- [翻译]编写高性能 .NET 代码 第一章:工具介绍 -- Visual Studio
- [CQOI2013]新Nim游戏
- selenium-启动浏览器(二)
- 整数中1出现的次数(从1到n整数中1出现的次数)(python)
- LeetCode: Largest Number 解题报告 以及Comparator, CompareTo 应用
- IPC 之 AIDL 的使用
- MView的DDL查找:
- Python3之pymysql导入mysql
- spring boot 中使用redis session
- HibernateDaoSupport与JdbcDaoSupport
- JDK的安装与卸载
热门文章
- 关闭浏览器或者关闭使用window.open打开的页面时添加监听事件
- wpf样式与行为
- C++/CLI 创建WPF程序
- Prime Ring Problem HDU - 1016 (dfs)
- mysql与hibernate选择某个字段的最大值,比如表中的最大id
- NFS挂载服务具体的实施方案
- nyoj zb的生日【背包型DFS/选or不选】
- Oracle 查询库中所有表名、字段名、表名说明、字段名说明(原创)
- 【模板】倍增LCA [2017年5月计划 清北学堂51精英班 Day3]
- Leetcode657.Robot Return to Origin机器人能否返回原点