我试图在 WSL 中的 bash 中附加到文本文件(使用>>运算符)。不幸的是,由于我是初学者,而不是附加到文件,而是使用>>“文本”作为文件名创建了一个新文件,并且 Windows(GUI)和 Ubuntu(rm命令)似乎都无法删除该文件目录(即使使用命令时也会显示dir)。
Windows 图形用户界面:
Windows 错误代码:
重击:
root@DESKTOP-IA030GJ:/# cd home
root@DESKTOP-IA030GJ:/home# dir
English_Class Finished_Projects Keeping.txt Random_Password_Generator_Project \\n\\n\ -----Changes\ onion_project pythonwork
root@DESKTOP-IA030GJ:/home# ls --quoting-style=shell
English_Class '\n\n -----Changes '
Finished_Projects onion_project
Keeping.txt pythonwork
Random_Password_Generator_Project
Run Code Online (Sandbox Code Playgroud)