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

Thanks for the update. This

Thanks for the update. This command worked for me in 10.10 preview when the dock didn't load correctly after the initial reboot.

Dock wasn't updating... Thank

Dock wasn't updating... Thank you!!

Half my menu bar was blacked

Half my menu bar was blacked out for some reason. killall -KILL Dock fixed it right away. Thanks!

fuck u mate!

fuck u mate!

The command-line ideas listed

The command-line ideas listed here didn't work for me, but I found an easy fix, I just clicked on the "login window" as if to switch users in the top-right menu bar, and then logged in again to the same user I was logged in before and the (crashed) menu bar reappeared.

My name appears upper in

My name appears upper in menubar help it does not look centrelized

Your suggestion on fixing the

Your suggestion on fixing the blurry dock icons through the terminal was great. Thank you.

Please Stephan, would you

Please Stephan,
would you have the answer for the problem that is stopping drag and copy on the mac book Pro
using the terminal ?
Many thanks.
Francisco Baudet

my dock icons were fuzzy and

my dock icons were fuzzy and this fixed it, when a restart couldn't. Thanks!

thasnkf man.. awesome post as

thasnkf man.. awesome post as always..

free instagram followers

With OS X Mavericks, I

With OS X Mavericks, I recommend "launchctl stop com.apple.Dock.agent" to restart the Dock.

With OS X Mavericks, I

With OS X Mavericks, I recommend "launchctl stop com.apple.Dock.agent" to restart the Dock.

Check that u write "Finder"

Check that u write "Finder" and not "finder" (work for me in that way...)

My dock and desktop

My dock and desktop dissapeard and i already tried this. I need help.

great share thanks

great share
thanks

There are some really good

There are some really good products like Iphone 5s 3 Colors at myefox, I bought one last week, the service is excellent! http://www.myefox.fr/popular/iphone-5s-3-colors.html

Do you know why the dock

Do you know why the dock keeps freezing? I have to kill it almost every other day!

AWESOME!! My Dock has been

AWESOME!! My Dock has been only showing up 1/2 time on start ups . . FIXED > killall -KILL Dock

worked PERFECTLY. THANK YOU!

worked PERFECTLY. THANK YOU! My app icons were not showing up in the dock when the apps were open. No idea why, but this restored them all. Many thanks again.

Yes! The KILLALL command to

Yes! The KILLALL command to kill the dock worked for me too. I had the same problem, and I am posting here hoping it helps others as well.
Some of my application icons wouldn't show as active anymore when an app was running. Skype and Mac Mail wouldn't show notification of incoming messages. The Dock restart solved the problems, everything works fine again! Took me a few search strings to even figure out what I am trying to fix.

Keywords: Mac Mail Skype Application Icon Icons Dock not working not active anymore 10.7.5.

When I use "killall -KILL

When I use "killall -KILL Finder" i get "No matching processes belonging to you were found"
And do not get Finder back in use.
Short of powering off/on my iMac what can I do?

Help to all

thank you

thank you

Thanks a lot...

Thanks a lot...

worked PERFECTLY. THANK YOU!

worked PERFECTLY. THANK YOU! My app icons were not showing up in the dock when the apps were open. No idea why, but this restored them all. Many thanks again.

Cheers

Cheers

That really helps! Thanks

That really helps! Thanks

It is truly a nice and

It is truly a nice and helpful piece of info. I am happy that you shared this useful information with us. Please stay us up to date like this. Thank you for sharing.

For those not comfortable

For those not comfortable using the Terminal, you can use Activity Monitor, find the process and Quit it.

Should have the same result

I would like to say out here

I would like to say out here that they fired, in a cowardly fashion might I add, our local sales rep. A man who went through a lot for Invitrogen and a good rep. Can't believe it. I certainly will be looking at other media and enzyme vendors. How can a manager can do this ? Adizero

I would like to say out here

I would like to say out here that they fired, in a cowardly fashion might I add, our local sales rep. A man who went through a lot for Invitrogen and a good rep. Can't believe it. I certainly will be looking at other media and enzyme vendors. How can a manager can do this ? Adizero

Thanks! :)

Thanks! :)

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?
                                                                                        

ffffffffffffffff 444444444
f::::::::::::::::f 4::::::::4
f::::::::::::::::::f 4:::::::::4
f::::::fffffff:::::f 4::::44::::4
yyyyyyy yyyyyyy f:::::f ffffff 4::::4 4::::4 cccccccccccccccc
y:::::y y:::::y f:::::f 4::::4 4::::4 cc:::::::::::::::c
y:::::y y:::::y f:::::::ffffff 4::::4 4::::4 c:::::::::::::::::c
y:::::y y:::::y f::::::::::::f 4::::444444::::444 c:::::::cccccc:::::c
y:::::y y:::::y f::::::::::::f 4::::::::::::::::4 c::::::c ccccccc
y:::::y y:::::y f:::::::ffffff 4444444444:::::444 c:::::c
y:::::y:::::y f:::::f 4::::4 c:::::c
y:::::::::y f:::::f 4::::4 c::::::c ccccccc
y:::::::y f:::::::f 4::::4 c:::::::cccccc:::::c
y:::::y f:::::::f 44::::::44 c:::::::::::::::::c
y:::::y f:::::::f 4::::::::4 cc:::::::::::::::c
y:::::y fffffffff 4444444444 cccccccccccccccc
y:::::y
y:::::y
y:::::y
y:::::y
yyyyyyy

Enter the code depicted in ASCII art style.