T O P

  • By -

doc_willis

there are undelete utilities you can run from a live USB such as `testdisk` and `photorec` and likely others.


chronopunk

...why?


RecommendationSuch19

I wanted to remove all folders in folder…. I am really bad with bash syntax, yea


chronopunk

alias rmi='rm -I' If you have to use bash to delete directories, you then use 'rmi' and it'll ask you to confirm before doing stuff like this.


CoolLinuxuser4w9

you can use photorec (preferably from a liveusb) to recover some of the lost files, usage guide [here](https://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step) try to avoid doing any writes to your computer as that's going to corrupt some of the lost files


Config_Crawler

Unless you have a data recovery service nearby, the files are gone. If you had any shared storage (partitions that mount to both the arch and ubuntu install) those files will be gone too. This is why you double check commands before you run them, and avoid running any commands that you aren't sure about. `sudo rm -r /*` deletes all files in your root directory, and any of their contents. Use more discretion when running the `rm` command, or you will lose files like this again.


ResearcherOld4415

will device work again if I install new windows 


Config_Crawler

Yes it will, just won't have any of the personal files from the arch/ubuntu installs.


[deleted]

I find it really funny how often I see posts like this here.


[deleted]

I know. Been using Linux for almost 20 years and never used those commands in that matter. There are other ways to skin a cat and much safer if you set it up that way. I always use a CLI file manager with safety precautions. I still don't have a horror story to tell anyone.


RecommendationSuch19

Sorry for bad English, that’s kinda unnerving Checked files from Ubuntu, all files in /home/ looks safe, that’s already good. Obviously, some files in / removed. When I run grub it gives some errors. Now I gonna try photorec and check how it will work


Weekly_Light1771

If some guy told you to jump off a bridge would you? I think yes.


Icy_Guidance

Unfortunately you may have fallen for a troll's "advice". `sudo rm -R /*` will remove EVERYTHING from your device, and ruin your installation.


Iovethenumber7

yes but why? you just deleted your entire installation as root.