1

I've tried to remove linux files from windows but they hadn't been deleted.
I tried to remove from Ubuntu terminal but get "permission denied"
I set chown $USER:$USER and chmod 777 for parent directories and files also try sudo it did't help at all
I install Ubuntu 20 from windows store. I use command sudo rm {my filename}

file list

3
  • "I install Ubuntu 20 from windows store" This is WSL?
    – xenoid
    Commented May 1, 2020 at 7:47
  • @xenoid This was WSL, yes
    – Valery
    Commented May 1, 2020 at 8:45
  • I have this same problem and will provide some context that may be relevant. For me, the file I cannot remove is a CSV file that I had opened in Excel at some point. The file is not visible when using FileExplorer and running 'ls -l' shows that it has 0 links. Here is a post that may be helpful: askubuntu.com/questions/1389682/…..
    – Slavatron
    Commented Aug 24, 2023 at 16:24

1 Answer 1

0

I had this problem and was able to solve it by shutting down WSL using PowerShell. First I ran wsl --list --verbose to get the version of Ubuntu I had running. Then I ran wsl -t Ubuntu to shut WSL down. After, starting WSL up again the file was gone.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .