Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I used the dialog binary tool to create some msgbox on Linux screen as the following example

        dialog –colors –title “test” –msgbox “type <ENTER> 8 50

My question how to kill the dialog process in order to clear the screen without dialog BOX , there no dialog process , I check with ps –ef , I also try to

    dialog –clear 

this isn’t clear the screen and the dialog box still exist

Please advice?

share|improve this question

Try pkill -HUP dialog. You should have a dialog process, since dialog is a separate program; on my system I see it with ps -ef | grep dialog. pkill will find it and send it a HUP (or other) signal. You'll have a mess to clean up on the terminal screen, though; try reset for that.

share|improve this answer
pkill -HUP not really kill the GUI , I already tried it -:( – Diana Nov 21 '11 at 12:42
It works for me. Sorry. – Andrew Schulman Nov 21 '11 at 13:10

According to dialog man page you should use clear shell command if you want to clear the screen after showing the dialog.

So this should do it:

dialog --color --title "test" --msgbox "type <ENTER>" 8 50 && clear

Or if you are OK with the dialog box cleared but the dialog background color still there after exiting, this is another variation:

dialog --color --clear --title "test" --msgbox "type <ENTER>" 8 50 
share|improve this answer
its not kill the GUI , sorry – Diana Nov 21 '11 at 12:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.