Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1


    Member Since
    Sep 06, 2011
    Posts
    8
    Cannot delete files that are on my mac desktop
    Problem: I have four files that I cannot delete on my desktop. They are files that I downloaded (see screenshot picture). I cannot drag these files (they don't move). I have tried to delete by using Terminal with the sudo rm -rf command. I have tried to drag into Terminal but the files don't move. I have copied the files (which works) and tried pasting in Terminal, but they I get an message in Terminal as follows:

    sam:.Trash jeffpeckham$ sudo rm -rf August 28, 2011.pdf.part
    sam:.Trash jeffpeckham$ August 28, 2011.pdf
    -bash: August: command not found
    sam:.Trash jeffpeckham$ ALTO SAX CH#807 My Country Tis Of Thee.pdf.part
    -bash: ALTO: command not found
    sam:.Trash jeffpeckham$ ALTO SAX CH#807 My Country Tis Of Thee.pdf
    -bash: ALTO: command not found
    sam:.Trash jeffpeckham$ sudo rm -rfAugust 28, 2011.pdf.part

    Anyone with any ideas? I can't figure this one out to save me.

    Thanks,
    Jeff
    Attached Images Attached Images

  2. #2

    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    8,356
    Specs:
    27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3
    Do this
    Code:
    # ls -l *.part
    If this shows you JUST the files you are interested in deleting, then follow with
    Code:
    # rm -rf *.part
    That should delete these files. You can also delete individual files by putting the file name is quotes, so it would be "August 28, 2011.pdf.part" for the first one..

    If you get permission issues, you might have to prefix the above "rm -rf" command with "sudo", so it looks like "sudo rm -rf *.part"..
    --
    Regards
    ...Ashwin



    Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.

  3. #3


    Member Since
    Sep 06, 2011
    Posts
    8
    Thanks for your reply. I tried your suggestions. Nothing happened. Maybe I am doing something wrong? Here is a copy of my Terminal Session:

    Last login: Tue Sep 6 14:12:07 on ttys000
    sam:~ jeffpeckham$ # 1s -1 *.part
    sam:~ jeffpeckham$ # rm -rf *.part
    sam:~ jeffpeckham$ # rm -rf "August 28, 2011.pdf.part"
    sam:~ jeffpeckham$ # 1s -1 "August 28, 2011.pdf.part"
    sam:~ jeffpeckham$ sudo rm -rf "August 28, 2011.pdf.part"
    sam:~ jeffpeckham$ sudo rm -rf August 28, 2011.pdf.part
    sam:~ jeffpeckham$

  4. #4

    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    8,356
    Specs:
    27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3
    You should run the commands without the # in front of them..and the first command is "el" "es", minus "el" ..those are not the number 1..

    After your 5th command, did you check to see if the August 28, 2011.pdf.part is still on the Desktop?
    --
    Regards
    ...Ashwin



    Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.

  5. #5


    Member Since
    Sep 06, 2011
    Posts
    8
    Thanks for your reply again. I tried "l" instead of number "1". I did it for the first command as follows, but it did not find the file:

    Jeff-Peckhams-MacBook-Pro:~ jeffpeckham$ ls -l *.part
    ls: *.part: No such file or directory
    Jeff-Peckhams-MacBook-Pro:~ jeffpeckham$

  6. #6

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,745
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    That's because you're working in your home directory - this is what the ~ symbolizes. Execute the following to change your working directory to the Desktop:
    Code:
    cd ~/Desktop
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  7. #7


    Member Since
    Sep 06, 2011
    Posts
    8
    Ok. Thanks for clarification. I am working in Desktop now through Terminal. Here is what I got:
    Jeff-Peckhams-MacBook-Proesktop jeffpeckham$ ls -l August 28, 2011.pdf.part
    ls: 2011.pdf.part: No such file or directory
    ls: 28,: No such file or directory
    ls: August: No such file or directory

    Is this saying there is a problem since I have spaces in the file name? Didn't delete it after trying.

  8. #8

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,745
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Yes, it is because there are spaces which either need to be escaped or accommodated for by wrapping the filename in quotation marks.

    So, do one of the following with the filename:
    Code:
    ls -l August\ 28,\ 2011.pdf.part
    or
    Code:
    ls -l "August 28, 2011.pdf.part"
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  9. #9


    Member Since
    Sep 06, 2011
    Posts
    8
    Thanks for your reply. I tried your suggestion, but the files did not delete. I got this:

    Jeff-Peckhams-MacBook-Proesktop jeffpeckham$ ls -l August\ 28,\ 2011.pdf.part
    ls: August 28, 2011.pdf.part: No such file or directory
    Jeff-Peckhams-MacBook-Proesktop jeffpeckham$ ls -l "August 28, 2011.pdf.part"
    ls: August 28, 2011.pdf.part: No such file or directory

  10. #10

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,745
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    What is printed back when you execute the following:
    Code:
    ls -la
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  11. #11


    Member Since
    Sep 06, 2011
    Posts
    8
    Jeff-Peckhams-MacBook-Proesktop jeffpeckham$ ls -la
    total 88
    drwx------+ 4 jeffpeckham staff 136 Sep 6 21:36 .
    drwxr-xr-x+ 34 jeffpeckham staff 1156 Aug 31 14:43 ..
    -rw-------@ 1 jeffpeckham staff 43012 Sep 6 21:36 .DS_Store
    -rw-r--r-- 1 jeffpeckham staff 0 Feb 22 2011 .localized
    Jeff-Peckhams-MacBook-Proesktop jeffpeckham$

  12. #12

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,745
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Those results would suggest that the files aren't there and thus, the Desktop doesn't seem to be refreshing properly. Have you rebooted the machine since?
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  13. #13


    Member Since
    Sep 06, 2011
    Posts
    8
    It worked! I rebooted and the files are not on my desktop anymore. Only problem is, I wish I knew which of the above solutions worked. I am guessing that I was to reboot the system after each try? Thanks to all who helped me through this. Amazing forum!

  14. #14

    MACyMouse's Avatar
    Member Since
    Oct 25, 2004
    Location
    Australia (American born)
    Posts
    712
    Specs:
    MBP 15" 2006 | 2011 21.5in iMac-1tb-i5-12gig | iPhone 3gs
    Ok... instead of starting a new thread because a "search" didn't work but deleting seems to be MY problem....

    If I right-click and select Delete or Send to Trash I'm required to type in my password for everything. I'm getting pretty annoyed by this. How do I stop this from happening? I'm the admin.... Running Lion

  15. #15


    Member Since
    Sep 06, 2011
    Posts
    8
    I saw this post on mac forum:
    http://www.mac-forums.com/forums/os-...intosh-hd.html

    Maybe this will help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. unable to delete files off my desktop
    By rkazoun in forum OS X - Operating System
    Replies: 0
    Last Post: 03-20-2012, 09:54 AM
  2. Cannot delete desktop files
    By MrBoots in forum OS X - Operating System
    Replies: 10
    Last Post: 03-05-2012, 02:19 PM
  3. I can't delete 6 excel files from my desktop
    By novik in forum OS X - Operating System
    Replies: 14
    Last Post: 01-13-2012, 12:20 PM
  4. I have hidden files on desktop i want to delete
    By frique10 in forum OS X - Operating System
    Replies: 3
    Last Post: 04-19-2008, 07:17 AM

Posting Permissions

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