1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Handle deleted files

Discussion in 'Unix' started by swetha, Oct 10, 2006.

  1. swetha

    swetha New Member

    Joined:
    Oct 10, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi All,

    I would like to know how to write a script file in linux which does the following.
    whenever a file is deleted, it should be placed in a temporary folder so that we can recover it later as and when required.

    The script file can contain alias for rm command as mv command. whenever rm command is issued it should do the mv command.

    Actually, i am not getting the complete syntax to write this alias for this.

    thanks
    swetha
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    See if [thread=1585]How to get deleted files in Linux[/thread] helps you.
     

Share This Page