无法编辑 .bashrc

无法编辑 .bashrc

我正在使用 bash(WSL)和 VsCode 来编辑 .bashrc,但一直收到错误。

"C:\Users\USER\AppData\Local\Programs\Microsoft VS Code\bin\code.cmd" --file-write "c:\Users\USER\AppData\Roaming\Code\code-elevated-VCl4X1Tf" "\\wsl.localhost\Ubuntu\home\USER\.bashrc" Error using --file-write: EPERM: operation not permitted, open '\\wsl.localhost\Ubuntu\home\USER\.bashrc'

我甚至无法在 bash 内部使用 nano 编辑 .bashrc,因此我更改了文件的权限,以便我可以读写和执行它,但什么都没有改变。

我应该怎么办?

相关内容