I am currently learning how to use the bash hyper terminal on windows. All commands seem to work correctly e.g mkdir, touch, cd; but when trying to use rm to remove a file I get the message: "rm: cannot remove 'text.txt': permission denied.
I have alredy tried running the terminal as admin, deactivate the UAC; none worked. I am currently using the lastest version of gitbash an using "Hyper" as my terminal. In the folowing code i first created a folder called mike, which was then used to have the document text.txt (this document was made with the "touch" command). Then when trying to delete it, i get permission denied. These are the commands I used. I have already tried running the terminal as admin and disable the UAC, none worked. help would be very much appreciated :)
mikep@Turing MINGW64 ~
$ cd OneDrive/Documentos/WebDevelopment/
mikep@Turing MINGW64 ~/OneDrive/Documentos/WebDevelopment
$ mkdir mike
mikep@Turing MINGW64 ~/OneDrive/Documentos/WebDevelopment
$ cd mike/
mikep@Turing MINGW64 ~/OneDrive/Documentos/WebDevelopment/mike
$ pwd
/c/Users/mikep/OneDrive/Documentos/WebDevelopment/mike
mikep@Turing MINGW64 ~/OneDrive/Documentos/WebDevelopment/mike
$ touch text.txt
mikep@Turing MINGW64 ~/OneDrive/Documentos/WebDevelopment/mike
$ rm text.txt
rm: cannot remove 'text.txt': Permission denied
mikep@Turing MINGW64 ~/OneDrive/Documentos/WebDevelopment/mike
$ sudo text.txt
bash: sudo: command not found
mikep@Turing MINGW64 ~/OneDrive/Documentos/WebDevelopment/mike
$