Recover a file after rm
Solved
ayago
Posted messages
28
Status
Member
-
lami20j Posted messages 21506 Registration date Status Moderator, Security Contributor Last intervention -
lami20j Posted messages 21506 Registration date Status Moderator, Security Contributor Last intervention -
Hello,
I have a small question: yesterday, unintentionally, I ran a "rm conecter.txt" and what can I do to recover my file??
thanks
I have a small question: yesterday, unintentionally, I ran a "rm conecter.txt" and what can I do to recover my file??
thanks
Configuration: Windows XP Firefox 2.0.0.14
2 answers
-
Hi,
See the FAQ Data recovery and, more specifically, this section...
But well, it's not a given; :-(
--
JP - Penguin breeder -
Do something for the environment: close your windows and adopt a penguin. -
Hi,
Like the previous colleague, it’s not easy...
When you delete files you really have to be careful with what you’re doing.
The best thing is sometimes to get used to using the mv command, which renames the file...
Otherwise, you can try to recover by following the advice he gave you, but above all take your time...
Another point: when you want to delete files, it’s better to do it via the KDE or Gnome graphical interface, so you can benefit from the trash.
See you.
Good luck.
--
A common belief is often a dead one.-
-
Hi,
when you want to delete files, it’s better to do it via the KDE or GNOME graphical interface, so you can benefit from the Trash can.
Actually it’s the equivalent of the commandmv fichier $HOME/.Trash
Whether in graphical mode or in console mode you should always think twice before pressing Enter or clicking ;-)
To anticipate misuse of rm there is the option to create an aliasecho "alias rm='rm -i'" >> $HOME/.bashrc && source $HOME/.bashrc
the -i option for a confirmation before deletion.lami20j@debian:~/trash$ touch zyr lami20j@debian:~/trash$ rm -v zyr détruit `zyr' lami20j@debian:~/trash$ man rm Remonitoring of rm(1), please wait... lami20j@debian:~/trash$ touch bidon lami20j@debian:~/trash$ rm -v bidon détruit `bidon' lami20j@debian:~/trash$ echo "alias rm='rm -i'" >> $HOME/.bashrc && source $HOME/.bashrc lami20j@debian:~/trash$ touch bidon lami20j@debian:~/trash$ rm -v bidon rm: destroy regular empty file `bidon'? y détruit `bidon'
--
106485010510997108
-