Stefan Ernst

Mac: Restarting the Mac OS X Dock, Finder, Spaces or Menubar

Apple Logo

Sometimes it just seems to happen, you're getting the spinning beachball on Mac OS X System Applications/Tools, like the Finder when connecting to a messed up network share. Luckily, most of the time it's easy (yet annoying) to fix via starting the Terminal and using following commands (beware, the names of the programs to kill are case sensitive!):

The Finder crashed:
killall -KILL Finder
(you can also restart the Finder by option (=alt) + rightclicking the Finder icon in the Dock and selecting Relaunch. It doesn't always work though.)

The Dock crashed:
killall -KILL Dock

Spaces crashed:
killall -KILL Dock

The Menubar crashed/refuses to be clickable:
killall -KILL SystemUIServer

All these services should automatically restart after they have been killed. If for some reason they won't, you're probably better off just rebooting (to be sure, the "Shut Down" option from the Finder/Menu bar will probably not help, just go to the Terminal and type: sudo shutdown -r now - provide your Admin password and your machine should be restarting).

Good luck!

Comments

USING THE killall -KILL Dock

USING THE killall -KILL Dock COMMAND BUT STILLL NO WORKIE - THERE IS NO DOCK PROCESS RUNNING. IT HAS DISAPPEARED. ANY THOUGHTS ON HOW TO REINSTATE/REINSTALL THE DOCK PROCESS?

tHANKS
cHARLIE

thanks!! :D .. haha cool

thanks!! :D .. haha cool captcha by the way..

big thanks!

big thanks!

I'm using -KILL on purpose,

I'm using -KILL on purpose, as killall will will by default send the TERM, not the KILL signal.

Read the man page, it's all in there. :-)

NAME
     killall -- kill processes by name

SYNOPSIS
     killall [-delmsvz] [-help] [-u user] [-t tty] [-c procname] [-SIGNAL] [procname ...]

DESCRIPTION
     The killall utility kills processes selected by name, as opposed to the selection by pid as done
     by kill(1).  By default, it will send a TERM signal to all processes with a real UID identical to
     the caller of killall that match the name procname.  The super-user is allowed to kill any
     process.

     The options are as follows:

           -d | -v     Be more verbose about what will be done.  For a single -d option, a list of the
                       processes that will be sent the signal will be printed, or a message indicating
                       that no matching processes have been found.

           -e          Use the effective user ID instead of the (default) real user ID for matching
                       processes specified with the -u option.

           -help       Give a help on the command usage and exit.

           -l          List the names of the available signals and exit, like in kill(1).

           -m          Match the argument procname as a (case sensitive) regular expression against
                       the names of processes found.  CAUTION!  This is dangerous, a single dot will
                       match any process running under the real UID of the caller.

           -s          Show only what would be done, but do not send any signal.

           -SIGNAL     Send a different signal instead of the default TERM.  The signal may be speci-
                       fied either as a name (with or without a leading SIG), or numerically.

           -u user     Limit potentially matching processes to those belonging to the specified user.

           -t tty      Limit potentially matching processes to those running on the specified tty.

           -c procname
                       When used with the -u or -t flags, limit potentially matching processes to
                       those matching the specified procname.

           -z          Do not skip zombies.  This should not have any effect except to print a few
                       error messages if there are zombie processes that match the specified pattern.

he's using killall, not

he's using killall, not kill.

thus, no need for -KILL.

*you* read the man page; or even better, hop into bash and try it out.

Awesome. Thanks for the

Awesome. Thanks for the list.

And yes, you *do* need the -KILL option. Or, you could also give a -9 like I do. :-) See the man page.

you don't need the -KILL

you don't need the -KILL parameter on any of those commands

you are not deleting

you are not deleting anything, you're only force quitting the dock and restarting it.

my dock is gone and i want

my dock is gone and i want to try this but i would like to know if all of my stuff is safe. like my pictures, videos, documents. etc

Thanks, my dock was lost and

Thanks, my dock was lost and this worked.

I use "killall -KILL Finder"

I use "killall -KILL Finder" now to reset the finder when I can't rename files or open a new finder page.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
Are you human?
                                                                                  
dddddddd dddddddd
888888888 d::::::d 66666666 d::::::d
88:::::::::88 d::::::d 6::::::6 d::::::d
88:::::::::::::88 d::::::d 6::::::6 d::::::d
8::::::88888::::::8 d:::::d 6::::::6 d:::::d
8:::::8 8:::::8 ddddddddd:::::d 6::::::6 ddddddddd:::::d
8:::::8 8:::::8 dd::::::::::::::d 6::::::6 dd::::::::::::::d
8:::::88888:::::8 d::::::::::::::::d 6::::::6 d::::::::::::::::d
8:::::::::::::8 d:::::::ddddd:::::d 6::::::::66666 d:::::::ddddd:::::d
8:::::88888:::::8 d::::::d d:::::d 6::::::::::::::66 d::::::d d:::::d
8:::::8 8:::::8 d:::::d d:::::d 6::::::66666:::::6 d:::::d d:::::d
8:::::8 8:::::8 d:::::d d:::::d 6:::::6 6:::::6 d:::::d d:::::d
8:::::8 8:::::8 d:::::d d:::::d 6:::::6 6:::::6 d:::::d d:::::d
8::::::88888::::::8 d::::::ddddd::::::dd 6::::::66666::::::6 d::::::ddddd::::::dd
88:::::::::::::88 d:::::::::::::::::d 66:::::::::::::66 d:::::::::::::::::d
88:::::::::88 d:::::::::ddd::::d 66:::::::::66 d:::::::::ddd::::d
888888888 ddddddddd ddddd 666666666 ddddddddd ddddd






Enter the code depicted in ASCII art style.