suppose an apache log file gets deleted but its held open by apache then this is what i am doing.
pid=$(lsof | grep text.txt | awk '/deleted/ {print $2}')
fd=$(lsof | grep text.txt | awk '/deleted/ {print $4}' | grep -oE "[[:digit:]]{1,}")
cp /proc/$pid/fd/$fd directorytobecopied/testfile.txt
this is what i am doing to recover the file and put it back where it was.
is there any simpler way of
Hello, I just realized that I can't send sms. I can receive sms, but the received sms aren't saved in my phone.
The reason is that yesterday I deleted two stock applications: the sms stock application and another stock application for generally messages (I don't know what exactly was).
G'Day All and Thanks in Advance.
In all OS (particular Windows), when a file is deleted, I am under the impression that the file is marked as deleted but not removed from the PC just a flag is set for that file, (the file remains and can be recovered if required). If I move the file to a USB stick then delete that file is there any record of the file (left) on the PC. Thanks TopEnder
Hi all,
It is possible to make a system setting somewhere or install code so that when a file is deleted or moved, regardless of how, ie: using any means a shell cmd or a desktop application, the file is securely deleted?
I typically use gnome desktop and when I delete a file I want to know for certain it has been deleted, erased, all data gone... etc.
When a file is deleted from your computer it is not really deleted. it still exists and it’s possible to recover even if you empty the trash. In this video I demonstrate deleting files and recovering them using Testdisk (Photorec) in Ubuntu. - This will work as long as the space where those files are [...]
I just shift-deleted some important pdf-files from my dual-boot system. The files were originally on Windows drive, but I deleted them from Ubuntu.
I just used Foremost to recover, but it returns more than 1000 files, with numbered-names.
Hey guys,
New here. Didn't find a thread like this for this phone unless I'm missing something, so figured I would post about this.
My text message settings had a cap on the number of texts per conversation, after which the oldest messages would be deleted. I want those messages back(I have since disabled the cap).
I somehow messed up the services.jar file under system/framework. I don't know if I deleted it or somehow edited it inadvertently but now my phone will hardly function. It does boot, but every app/process force closes. I cannot even access the task manager or make calls. Is there any way to restore the file, through clockwork mod or?
I am not sure what happened but the Hosts file which I had previously was automatically deleted, and when I had recreated a new host file, it worked, since I had installed WordPress on my machine.