I am trying to delete a previously created file called a\.
I tried to use:
1)
rm -rf a\\
2)
rm -rf a\\/
but both are not working. I tried to login to the terminal but I was unable to delete. I wrote a and then clicked tab and it shows a\\/ but it stills not working. Neither from terminal. I get:
sudo rm -rf a\\/
rm: cannot remove `a\\': Operation not permitted
Any suggestions?
I'm assuming your using Ubuntu due to sudo?
Firstly make sure you are in the same directory as the file you are trying to delete, do this with:
print(getcwd());
Secondly try changing the owner of file your are trying to delete to www-data (or apache depending on your server) and then see if you can delete the file from the php script.
If this works then the problem you have is permission related.
There are a number of ways to solve this problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With