Bad Terminal problems, aka I screwed things up and I need help

Discussion in 'Mac Apps and Mac App Store' started by nate.rich, Jun 5, 2011.

  1. nate.rich, Jun 5, 2011
    Last edited: Jun 5, 2011

    nate.rich macrumors newbie

    Joined:
    Jun 5, 2011
    #1
    I am new to using terminal, and I was trying to make a "recent applications stack" in the Dock. So I typed in this:


    defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'

    And then I typed in this

    Killall Dock

    But Now the Dock won't open back up, and I already had a widget on my desktop with the Hack where you can drag widgets onto your desktop so now My widget just keeps blinking in and out of my desktop.

    What should I do, it could be great if someone could help me
     
  2. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
  3. Jolly Jimmy macrumors 65816

    Jolly Jimmy

    Joined:
    Dec 13, 2007
    #3
    The dock preference file is probably corrupted. Move ~/Library/Preferences/com.apple.dock.plist to the trash and kill the dock in terminal. This will reset the dock.
     
  4. nate.rich thread starter macrumors newbie

    Joined:
    Jun 5, 2011
    #4
    I did try to reboot, and it didn't work but i'll try moving that file. but I can't do kill Dock, because I tried, and I have no processess even related to dock. I tried to do

    ps -ax | grep Dock

    But NO processess showed up, SHOULD I STILL TRY IT?

    And this probably sounds stupid. But What do I type in to move that file?
     
  5. Jolly Jimmy macrumors 65816

    Jolly Jimmy

    Joined:
    Dec 13, 2007
    #5
    Finder > Go > Go to Folder... ~/Library/Preferences/
     
  6. nutjob macrumors 6502a

    Joined:
    Feb 7, 2010
    #6
    That does sound stupid. Use your mouse.
     
  7. nate.rich thread starter macrumors newbie

    Joined:
    Jun 5, 2011
    #7
    So will it work even if there are no Dock processess whatsoever? ANd I meant how do you meove the file in Terminal?
     
  8. Jolly Jimmy macrumors 65816

    Jolly Jimmy

    Joined:
    Dec 13, 2007
    #8
    Just navigate to the file and move it to the trash. Try it and reboot.
     
  9. nate.rich thread starter macrumors newbie

    Joined:
    Jun 5, 2011
    #9
    Okay thank you, do I just find the file and drag it to trashbin, because I cant find that file in finder. When I do it through terminal I can find it. Terminal says its in my ~ directory.
     
  10. Jolly Jimmy macrumors 65816

    Jolly Jimmy

    Joined:
    Dec 13, 2007
    #10
    Honestly if I were you I'd stay out of the terminal for the moment. As you can see it's easy to mess things up. Just find the file in the finder, move it to the trash and reboot.
     
  11. nate.rich thread starter macrumors newbie

    Joined:
    Jun 5, 2011
    #11
    Hey I fixed it, here is what I did in Terminal.



    Last login: Tue Feb 10 14:54:28 on console
    nathan-richmans-macbook-2:~ nathanrichman$ mv ~/library/preferences/com.apple.dock.plist to ~/Desktop
    mv: rename to to /Users/nathanrichman/Desktop/to: No such file or directory
    nathan-richmans-macbook-2:~ nathanrichman$

    I don't understand how it worked though.


    And I have one more question, why couldn't I find that file in finder. Is it because it was a hidden file?
     
  12. Jolly Jimmy macrumors 65816

    Jolly Jimmy

    Joined:
    Dec 13, 2007
  13. nate.rich thread starter macrumors newbie

    Joined:
    Jun 5, 2011
    #13
    10.5.8 leopard.
     
  14. Jolly Jimmy macrumors 65816

    Jolly Jimmy

    Joined:
    Dec 13, 2007
    #14
    I don't know how it worked either because that mess you typed into the terminal would have done nothing.
     

Share This Page