Score:0

Accidentally deleted home folder when trying to delete uneraseable files. (How can I get a permission to re-delete recovered files?)

in flag

I recovered some files using testdisk/photorec. After the recovery, I tried to delete the folders I didn't need. The trash says it's empty but the space on the disk didn't free up. Neither restarting nor system cleaning with 'Stacer' helped, so I googled this code to try to delete it with:

$ sudo -rm ~/.Trash  
$ rm -rf *

$ rm -rf * resulted in:

rm: cannot remove 'expunged/536363428/recup_dir.1055/f251507336.gz': Permission denied

for all the files. How can get the permission needed to really delete it all again?

Liso avatar
sd flag
Have you try `sudo` ?
Someone avatar
my flag
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.
laketax avatar
in flag
@Liso could you please sent me a link or specific thing to google about using sudo, so that i can learn how it could help in my situation? I'm not very technically savvy to put it mildly.
laketax avatar
in flag
@Algnis I edited it and tried to describe everything more closely. Is it better? Do you have any suggestions how I can make it clearer?
Someone avatar
my flag
@laketax yes it is fine now but you could even do more !!! You can make the output of a command in code fences by putting ``` on the beginning and ``` on the end !!! I was told to review this question as it is your first question , So as it is a first question , You have done good . You can find more information in askubuntu.com/help/on-topic
laketax avatar
in flag
@Algnis thank you for your care and recommendations. I was struggling with the ``` at first, thought it looked like three period marks and then I wondered why those didn't do anything.
Someone avatar
my flag
Ya I tried to edit your answer and found that
Someone avatar
my flag
Please can you tell that the output you gave is of which command ?
Someone avatar
my flag
It doesn't seem to be correct
Someone avatar
my flag
Please post the output of `ls -l` in home directory
Someone avatar
my flag
You want to give file permissions ? Try with `chmod -R 777 ~/.Trash` replace trash with the path you want
Someone avatar
my flag
Run `sudo rm -rf *`
laketax avatar
in flag
ok i've fucked up... I ran ``` ls -l ``` and then ``` sudo rm -rf *``` and it looks like ive just deleted everything on computer... so i guess i need to do recovery now again, right? ... @algnis
Someone avatar
my flag
Well **language** , I told you to run sudo rm -rf * in place of rm -rf * !!!! Yes now you need to recover !!! By adding another user and deleting the before one , I will write an answer to describe it , give me 5mins
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.