Results 1 to 6 of 6

Thread: can;t delete a file

  1. #1
    Join Date
    Dec 2009
    Beans
    26

    can;t delete a file

    Hi,
    Im using Kubuntu 10.04 with KDE 4.4.2.
    I just downloaded a file thinking it was an e-book. It was in a zip archive I extracted and tried to open it but okular wrote me a message that it doesnt exist... After that i tried to delete it but i get this message: The file or folder /home/<user>/Desktop/ƪ �׮� - ����� �ծ���.pdf does not exist.


    When trying to delete it with sudo rm i get this:
    rm: cannot remove `/home/<user>/Desktop/ƪ': No such file or directory
    rm: cannot remove `�\327\256�': No such file or directory
    rm: cannot remove `-': No such file or directory
    rm: cannot remove `�����': No such file or directory
    rm: cannot remove `�ծ���.pdf': No such file or directory


    its name is weird but i can't rename it either.... what can i do??? plz help because it's on my desktop :/ thnx

  2. #2
    Join Date
    Jun 2009
    Location
    Johannesburg
    Beans
    Hidden!
    Distro
    Ubuntu Studio 8.04 Hardy Heron

    Re: can;t delete a file

    Restart the computer. You may want to check your disk for errors, boot from the recovery mode
    Behold! The internet...
    My god, it's full of ads.

  3. #3
    Join Date
    Dec 2009
    Beans
    26

    Re: can;t delete a file

    tried but did nothing... I think the problem is on the name.. It's in greek and the encoding in utf-8... thats why it cant read it and takes it as deleted file... any ideas?

  4. #4
    Join Date
    Dec 2008
    Location
    USA
    Beans
    89

    Re: can;t delete a file

    When you tried deleting it from the command line, did you put single quotes around the file name?
    Code:
    sudo rm 'file name here.ext'
    If you run
    Code:
    rm file name here.ext
    without the quotes, it will treat each word as a separate file - the same effect as if you ran
    Code:
     rm file 
    rm name 
    rm here.ext
    Looking at the output, this appears to be what happened.

  5. #5
    Join Date
    Jul 2006
    Location
    London, UK
    Beans
    818
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: can;t delete a file

    It might be easiest to delete the file by its inode number.
    First, find what the inode number is
    Code:
    cd Desktop
    ls -i *
    Make a note of the inode number of the greek file.
    Now remove it:
    Code:
    find . -inum inodenumber -exec rm -i {} \;
    Obviously, replace inodenumber with the number you noted down earlier.

  6. #6
    Join Date
    Dec 2009
    Beans
    26

    Re: can;t delete a file

    it worked with the inode number thnx i tried with ' ' at first but it said the same... thnx again

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •