Help on deleting using terminal

Discussion in 'OS X Mountain Lion (10.8)' started by Pynkiss, Aug 24, 2012.

  1. Pynkiss macrumors newbie

    Joined:
    Aug 24, 2012
    #1
    Hello,

    How can I delete files that are on my desktop using Terminal? Can't delete using Finder because I've got "Finder crashes repeadly" problem and I think that 1 app is causing this, because I added the app on my desktop and it started crashing right after I added that app. I've been using windows many years and this is the first year I'm on Mac, OS X and I don't know anything. I tried to google, but to be honest I didn't find a helpful post or atleast I didn't understand. Cheers and thanx for any help!
     
  2. miles01110 macrumors Core

    miles01110

    Joined:
    Jul 24, 2006
    Location:
    The Ivory Tower (I'm not coming down)
    #2
    Launch Terminal, type 'man rm' without the quotes, and read about the rm command.
     
  3. Arizor macrumors member

    Joined:
    Aug 24, 2012
    #3
    Launch Terminal:
    Or if it's a folder:

     
  4. Tooth DeKay macrumors newbie

    Joined:
    Aug 19, 2012
    #4
    You can save a step and just use

    rm ~/Desktop/FileToDelete

    or

    rm ~/Desktop/FolderToDelete
     
  5. Pynkiss thread starter macrumors newbie

    Joined:
    Aug 24, 2012
    #5
    Hey,

    I tried using

    Borderlands is the app that I want to delete. And I get "No Such file or directory"

    And also, I tried:

    Still the same. Any ideas why? I checked everything, I'm typing the name correct. How I checked? When I start my mac, for a second the finder is okay and all my files on the desktop are in and then disappear leaving the finder crash.

    Or even is there a command to wipe all my files from mac except the OS ones?
     
  6. miles01110 macrumors Core

    miles01110

    Joined:
    Jul 24, 2006
    Location:
    The Ivory Tower (I'm not coming down)
    #6
    Then that's probably not the name of the file or directory you want to delete. That error message does not leave much room for interpretation...
     
  7. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #7
    Is this the game Borderlands? From what I see here you are saying you dragged the game (app) from the Applications folder onto the desktop?

    If the game/app is visible on your desktop just click it once to select and then hit the command and delete keys at the same time and the app will be deleted.
     
  8. Mal macrumors 603

    Mal

    Joined:
    Jan 6, 2002
    Location:
    Orlando
    #8
    OP, try this. Enter "cd ~/Desktop" without the quotes (this will get you to your Desktop folder, regardless of where you are now). Make sure you get the capitalization right, because it is case-sensitive.

    Then, enter "ls". This will display a list of the files in the Desktop folder. The Borderlands application is probably going to be named Borderlands.app, but select and copy the exact name from that list.

    Then, enter "mv Borderlands.app ~/.Trash/", replacing Borderlands.app with whatever the actual name was if necessary. The reason I'm telling you to do this instead of the rm command used earlier is that if you mistype something while using rm you can really screw up the computer, but you're less likely to run into problem with mv (move). This command will move the file into your Trash.

    Then, try restarting and see if your Desktop loads properly.

    BTW, take this as an opportunity to begin keeping your desktop completely clean. Use it only for temporary storage of small items (stuff you drag off a webpage to save or small documents you're planning to move elsewhere). Because of the way it works in OS X, having large items on the Desktop will often produce results just like you're seeing here.

    jW
     
  9. Pynkiss thread starter macrumors newbie

    Joined:
    Aug 24, 2012
    #9
    Mal,

    I did what you said and it worked fine! I deleted the app and everything now works perfect and I will keep in mind your tips.

    And thanx to all who tried to help me, cheers! Case Closed!
     
  10. Mal macrumors 603

    Mal

    Joined:
    Jan 6, 2002
    Location:
    Orlando

Share This Page