I was trying to append to a text file in bash in WSL (using the >>
operator). Unfortunately since I'm a beginner instead of appending to a file, a new file was made with the >>
'text' as the filename , And seems like both Windows (GUI) and Ubuntu (rm command) cannot delete the file while i's in the directory . (It's shown even while using the dir command).
Windows GUI:
Windows error code:
Bash:
root@DESKTOP-IA030GJ:/home# dirEnglish_Class Finished_Projects Keeping.txt Random_Password_Generator_Project \\n\\n\ -----Changes\ onion_project pythonworkroot@DESKTOP-IA030GJ:/home# ls --quoting-style=shell English_Class '\n\n -----Changes ' Finished_Projects onion_project Keeping.txt pythonwork Random_Password_Generator_Projectroot@DESKTOP-IA030GJ:/home# ^Croot@DESKTOP-IA030GJ:/home# ^Croot@DESKTOP-IA030GJ:/home# ^Croot@DESKTOP-IA030GJ:/home# dirEnglish_Class Finished_Projects Keeping.txt Random_Password_Generator_Project \\n\\n\ -----Changes\ onion_project pythonworkroot@DESKTOP-IA030GJ:/home#