6

What is the command to restart Plank dock in case that is needed?

I have killed it with killall plank but now I cannot start it without logging out.

Doing plank in Terminal keeps it open only until the Terminal is closed.

2 Answers 2

7

I don't know why, but plank & does not work for me.

What I find effective is nohup plank &

Documentation on nohup

5
  • 4
    yes indeed. and to restart : killall plank && nohup plank & -- quite an abracadabra :)
    – user170
    Jul 8, 2015 at 18:36
  • 1
    I'm just curious, does the command provided by Cassidy work for someone? I see 5 upvotes, that's why I'm asking. Jul 8, 2015 at 18:38
  • there must be 5 happy cases... or not: I also had up-voted it initially :)
    – user170
    Jul 8, 2015 at 18:42
  • @saintjules it' working for me, you just need to press enter after pasting plank & and you can close your terminal after that. Jul 8, 2015 at 18:42
  • @BilalElmoussaoui yeah, I figured I had to press enter :) sorry, it's not working here, plank closes as the terminal is closed. Jul 8, 2015 at 19:43
9

The dock should restart itself automatically. However, if you need to manually run it from the Terminal and want it to continue running in the background, use the command plank &.

The & tells the Terminal to run the plank command in the background, allowing you to close the Terminal without killing the dock.

2
  • Should it be back by itself after killall plank? Well, after killing it the same way, plank & is no different than plank : the dock goes down with the terminal. I have to log out and in to restore the dock
    – user170
    Jul 8, 2015 at 18:26
  • does that work for you?
    – user170
    Jul 8, 2015 at 21:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.