Deleted fle

Discussion in 'Linux' started by frdeca, Jul 17, 2011.

  1. frdeca

    frdeca

    Joined:
    Jul 28, 2009
    Messages:
    9
    Likes Received:
    0
    I accidently deleted a file using thunar, left click on touch pad. Is there a way to recover it?
     
    frdeca, Jul 17, 2011
    #1
  2. frdeca

    frdeca

    Joined:
    Jul 28, 2009
    Messages:
    9
    Likes Received:
    0
    I've resolved this one my method may be of interest to others so this how to do it.
    start thunar
    open terminal
    type su followed by password (this is to avoid lot's of "access denied directory name" )
    type find / -name filename.ext or filename.*
    the response should be File:///home/user/.local/share/Trash/files/filename.ext (there will be others e.g. /mnt/home etc)
    return to thunar (alt tab) do not exit terminal
    enter the (path) /home/user/.local/share/Trash/files/ into the top address bar
    scroll down to filename.ext right click and choose copy
    change thunar to documents folder and paste the file where you want it.
    whilst looking in the files directory you may have noticed some files you really don't want to keep if you want to remove them
    go back to terminal and
    type ls filename .ext or *partfilename*.* or *.ext ( to ensure nothing unexpected shows if they do refine the argument)
    type rm -r -f filename .ext or *partfilename*.* or *.ext
    |remove |recursively |force
    job done
     
    frdeca, Jul 20, 2011
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.