Friday, May 15, 2015

Tried to delete symbolic link on WSL from Explorer, now cannot delete


I was trying to delete a symbolic link from /usr/local/bin from Explorer (I'm using WSL), and now I can't delete it at all. When I try to delete it from CMD or Bash, it says "Permission denied." When I try to change anything related to permissions on the file, it also says "permission denied" or something around that line. I cannot remove /usr/local/bin, and I cannot create a new text file to replace this file. The file is also a dangling link.


Answer



Running


 chkdsk /r

as administrator in Command Prompt deleted the link.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...