Disaster after cleaning [SOLVED]

Questions about applications and software
Forum rules
Before you post please read how to get help
Stefano_IT
Level 2
Level 2
Posts: 69
Joined: Tue Jul 09, 2019 8:53 am
Location: Italy

Disaster after cleaning [SOLVED]

Post by Stefano_IT » Thu Sep 19, 2019 9:02 am

I hope this is the right section to ask for help. (otherwise please move)

I executed a command found here:
https://easylinuxtipsproject.blogspot.c ... -mint.html

That would be it
rm -rfv ~ / .cache / miniature

After a quick cleaning at the terminal, I found myself:
delete all my desktop preferences and customizations (icons, panel icons, plugins installed in the panel)
Absent desktop background and Linux Mint restored to its original appearance.
The worst damage is that on the desk I had 3 or 4 folders and one of these was full of important text files.
Yes now the pc seems faster but I lost my text files on the desk.
What can I do to try to fix it?
Timeshift could help me?
Thanks for every suggestion

Edit:
I realized that I lost all the files that were in the documents folder!
I also lost all browser extensions, and even stored passwords. (but I have a backup of them)
Last edited by Stefano_IT on Thu Sep 19, 2019 3:31 pm, edited 1 time in total.
Linux Mint 18.3 Sylvia XFCE 64 bit

User avatar
trytip
Level 11
Level 11
Posts: 3829
Joined: Tue Jul 05, 2016 1:20 pm

Re: Disaster after cleaning

Post by trytip » Thu Sep 19, 2019 9:10 am

can we see the complete text in .bash_history ?

Code: Select all

xed $HOME/.bash_history
Image

User avatar
Pjotr
Level 21
Level 21
Posts: 13747
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Disaster after cleaning

Post by Pjotr » Thu Sep 19, 2019 9:12 am

Stefano_IT wrote:
Thu Sep 19, 2019 9:02 am
I hope this is the right section to ask for help. (otherwise please move)

I executed a command found here:
https://easylinuxtipsproject.blogspot.c ... -mint.html

That would be it
rm -rfv ~ / .cache / miniature
What kind of command is that? You most certainly did not, I repeat *not*, learn that from my website. :shock:
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

rene
Level 12
Level 12
Posts: 4307
Joined: Sun Mar 27, 2016 6:58 pm

Re: Disaster after cleaning

Post by rene » Thu Sep 19, 2019 9:12 am

If indeed you added the spaces to that command as you say above then I'm afraid you're likely royally effed, I.e., rm -rf foo bar ... means rm -rf foo and rm -rf bar, ..., and seeing as how in your case the first one was "~", your home directory, all its contents will have been dutifully deleted.

No, generally Timeshift isn't setup to backup your home directory. Sorry; you'll need actual file recovery with help of something like TestDisk.
Last edited by rene on Thu Sep 19, 2019 9:13 am, edited 1 time in total.

Stefano_IT
Level 2
Level 2
Posts: 69
Joined: Tue Jul 09, 2019 8:53 am
Location: Italy

Re: Disaster after cleaning

Post by Stefano_IT » Thu Sep 19, 2019 9:13 am

@trytip
I entered your command and I get:
rm -rfv ~ / .cache / miniature
Linux Mint 18.3 Sylvia XFCE 64 bit

User avatar
Pjotr
Level 21
Level 21
Posts: 13747
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Disaster after cleaning

Post by Pjotr » Thu Sep 19, 2019 9:15 am

Stefano_IT wrote:
Thu Sep 19, 2019 9:13 am
@trytip
I entered your command and I get:
rm -rfv ~ / .cache / miniature
The only command on the "Cleaning" page of my website that even remotely resembles that absolute horror of a command, is this:
Copy/paste the following command line into the terminal, in order to avoid typing errors:

rm -rfv ~/.cache/thumbnails

Press Enter.
Conclusion: PEBKAC. Don't blame my website for your own mistakes.

Edit: replaced some harsh words by milder ones.
Last edited by Pjotr on Thu Sep 19, 2019 11:40 am, edited 2 times in total.
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

rene
Level 12
Level 12
Posts: 4307
Joined: Sun Mar 27, 2016 6:58 pm

Re: Disaster after cleaning

Post by rene » Thu Sep 19, 2019 9:16 am

Pjotr wrote:
Thu Sep 19, 2019 9:15 am
Conclusion: PEBKAC. Don't blame my website for your own disastrous incompetence.
Ah, kick a man when he's down, uh... :-)

User avatar
Pjotr
Level 21
Level 21
Posts: 13747
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Disaster after cleaning

Post by Pjotr » Thu Sep 19, 2019 9:17 am

rene wrote:
Thu Sep 19, 2019 9:16 am
Pjotr wrote:
Thu Sep 19, 2019 9:15 am
Conclusion: PEBKAC. Don't blame my website for your own disastrous incompetence mistakes.
Ah, kick a man when he's down, uh... :-)
Yeah, well.... I tend to get a bit irritated when people blame my website for their own mistakes. I'll modify my reply to make it milder. :P
Last edited by Pjotr on Thu Sep 19, 2019 11:36 am, edited 3 times in total.
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

Stefano_IT
Level 2
Level 2
Posts: 69
Joined: Tue Jul 09, 2019 8:53 am
Location: Italy

Re: Disaster after cleaning

Post by Stefano_IT » Thu Sep 19, 2019 9:18 am

@Pjotr

I only indicated where I found the command.
I didn't accuse anyone.
Of course I did copy paste, it's convenient, where did I go wrong?
Linux Mint 18.3 Sylvia XFCE 64 bit

Stefano_IT
Level 2
Level 2
Posts: 69
Joined: Tue Jul 09, 2019 8:53 am
Location: Italy

Re: Disaster after cleaning

Post by Stefano_IT » Thu Sep 19, 2019 9:21 am

Pjotr wrote:
Thu Sep 19, 2019 9:12 am
Stefano_IT wrote:
Thu Sep 19, 2019 9:02 am
I hope this is the right section to ask for help. (otherwise please move)

I executed a command found here:
https://easylinuxtipsproject.blogspot.c ... -mint.html

That would be it
rm -rfv ~ / .cache / miniature
What kind of command is that? You most certainly did not, I repeat *not*, learn that from my website. :shock:
Istantanea_2019-09-19_15-20-38.png
Linux Mint 18.3 Sylvia XFCE 64 bit

rene
Level 12
Level 12
Posts: 4307
Joined: Sun Mar 27, 2016 6:58 pm

Re: Disaster after cleaning

Post by rene » Thu Sep 19, 2019 9:21 am

Once again, see above, you added spaces.

User avatar
Pjotr
Level 21
Level 21
Posts: 13747
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Disaster after cleaning

Post by Pjotr » Thu Sep 19, 2019 9:22 am

Stefano_IT wrote:
Thu Sep 19, 2019 9:18 am
@Pjotr

I only indicated where I found the command.
I didn't accuse anyone.
Of course I did copy paste, it's convenient, where did I go wrong?
Well, you definitely did not use copy/paste, because this is what the command is on my website:

Code: Select all

rm -rfv ~/.cache/thumbnails
Which resembles only remotely the disastrous command that you have executed:

Code: Select all

rm -rfv ~ / .cache / miniature
Search the differences. I count at least five. :wink:
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

User avatar
trytip
Level 11
Level 11
Posts: 3829
Joined: Tue Jul 05, 2016 1:20 pm

Re: Disaster after cleaning

Post by trytip » Thu Sep 19, 2019 9:25 am

well i have no idea what that command in your bash history is but if that's the only thing in your history of terminals then your improvised command did go above and beyond.
i did use ctrl+F to search that command on the website in question and did not find it. sorry for your troubles, you're not the only one that posted the wrong command in a terminal and ended up with disaster. i have fallen victim to that on quite a few occasions
Image

Stefano_IT
Level 2
Level 2
Posts: 69
Joined: Tue Jul 09, 2019 8:53 am
Location: Italy

Re: Disaster after cleaning

Post by Stefano_IT » Thu Sep 19, 2019 9:30 am

I do not understand :-(
I am convinced that I have copied and pasted.
I don't even have the competence and skill on the keyboard to type that command without copying and pasting.
What could have happened?

I also rebooted twice after cleaning, convinced that thumbnails and flipping files would come back after reboot.
See the attached photo, in my browser at the top right there are some missing icons (they are my extensions)
I am the only user of the computer but after the reboot I found myself as if it was just installed Mint (I also found the welcome screen)
Linux Mint 18.3 Sylvia XFCE 64 bit

Stefano_IT
Level 2
Level 2
Posts: 69
Joined: Tue Jul 09, 2019 8:53 am
Location: Italy

Re: Disaster after cleaning

Post by Stefano_IT » Thu Sep 19, 2019 9:34 am

rene wrote:
Thu Sep 19, 2019 9:21 am
Once again, see above, you added spaces.
I can't see the difference.
Where are the spaces?
Linux Mint 18.3 Sylvia XFCE 64 bit

rene
Level 12
Level 12
Posts: 4307
Joined: Sun Mar 27, 2016 6:58 pm

Re: Disaster after cleaning

Post by rene » Thu Sep 19, 2019 9:39 am

Please note that the at this point for you only relevant information is that you deleted your home directory and that if you have no backup, using TestDisk will be your best option at recovering the important bits. It can be installed straight from the repository: sudo apt-get install testdisk; I'd advise some googling as to how then in fact use it; it's menu/feedback driven and as such not easy to lay out in a forum post.

User avatar
Moem
Level 19
Level 19
Posts: 9527
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Disaster after cleaning

Post by Moem » Thu Sep 19, 2019 9:40 am

Stefano_IT wrote:
Thu Sep 19, 2019 9:34 am
I can't see the difference.
Where are the spaces?
spaces.png
spaces.png (7.57 KiB) Viewed 365 times
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

User avatar
Pjotr
Level 21
Level 21
Posts: 13747
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Disaster after cleaning

Post by Pjotr » Thu Sep 19, 2019 9:41 am

Stefano_IT wrote:
Thu Sep 19, 2019 9:30 am
I do not understand :-(
I am convinced that I have copied and pasted.
Well, not from my website then. The right command has always been the same on my website, as this snapshot from the Wayback Machine archive shows:
https://web.archive.org/web/20190212074 ... -mint.html

God knows where you got it from. Or perhaps (which is far more likely) you did type that monstrous command yourself.

For the rest: proceed as rene advises.
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

Stefano_IT
Level 2
Level 2
Posts: 69
Joined: Tue Jul 09, 2019 8:53 am
Location: Italy

Re: Disaster after cleaning

Post by Stefano_IT » Thu Sep 19, 2019 9:43 am

Pjotr wrote:
Thu Sep 19, 2019 9:12 am
Stefano_IT wrote:
Thu Sep 19, 2019 9:02 am
I hope this is the right section to ask for help. (otherwise please move)

I executed a command found here:
https://easylinuxtipsproject.blogspot.c ... -mint.html

That would be it
rm -rfv ~ / .cache / miniature
What kind of command is that? You most certainly did not, I repeat *not*, learn that from my website. :shock:
@Pjotr
I don't understand, I don't even see that command on your website. !!

It is not present on that page even in Google cache or web.archive.org
But I'm sure I did copy paste into the terminal.
Once when I did the cleaning
The second one when I asked for help here on the forum.
Otherwise I wouldn't even have been able to remember the command typed.

Do I have to think that I have a PC compromised from the outside?
Otherwise I don't know what to think, are there ghosts?
Or can there be another explanation ??
Linux Mint 18.3 Sylvia XFCE 64 bit

Stefano_IT
Level 2
Level 2
Posts: 69
Joined: Tue Jul 09, 2019 8:53 am
Location: Italy

Re: Disaster after cleaning

Post by Stefano_IT » Thu Sep 19, 2019 9:49 am

Pjotr wrote:
Thu Sep 19, 2019 9:41 am
Stefano_IT wrote:
Thu Sep 19, 2019 9:30 am
I do not understand :-(
I am convinced that I have copied and pasted.
Well, not from my website then. The right command has always been the same on my website, as this snapshot from the Wayback Machine archive shows:
https://web.archive.org/web/20190212074 ... -mint.html
Yes, I had already searched a few minutes ago before you mentioned it, both on Google cache and on archive org.
That command on your site is not there !!!

At this point I don't know what to think maybe it's better that I format the PC
Linux Mint 18.3 Sylvia XFCE 64 bit

Post Reply

Return to “Software & Applications”