I am pretty new to Linux and was attempting to make a shell script that would move all the files from one directory to another. It looked something like this:
(Please note, the syntax is not correct, its just to give you an idea of what i was doing)
for x in *; do mv $x $targetDir; done;
When I was testing it I just put some rubbish in the inputs, such as "asdsad"
When the script run, it moved all of the files from the root of the drive (not the root folder) and they all appear to be deleted. I know this was a stupid mistake, but I was hoping there might be some sort of roll-back I can perform. At the moment all of my files have been deleted and the OS is crippled or non-existant.
Is there any possible way to get the old data back from this system?
I wont make this mistake again, lol!