Recover a file after rm

Solved
ayago Posted messages 28 Status Member -  
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
Configuration: Windows XP Firefox 2.0.0.14

2 answers

  1. jipicy Posted messages 40842 Registration date   Status Moderator Last intervention   4 898
     
    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.
    0
  2. jivef Posted messages 1024 Status Member 306
     
    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.
    0
    1. ayago Posted messages 28 Status Member 2
       
      thank you for the advice
      good luck to you too,
      i have a question

      i installed an ftp server (vsftpd) on linux and i would like to assign a quota (allocate disk space e.g. 200MB) to each user, i don’t know how to proceed?
      thanks
      0
    2. lami20j Posted messages 21506 Registration date   Status Moderator, Security Contributor Last intervention   3 571
       
      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 command
       mv 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 alias
      echo "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
      0