On Dec 30, 2007 7:14 AM, Felix Miata <<a href="mailto:mrmazda@ij.net">mrmazda@ij.net</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 2007/12/30 00:30 (GMT-0500) James Loughner apparently typed:<br><div class="Ih2E3d"><br>> daniel åkerud wrote:<br><br>>> How can I do a KDE "restart" (Found through K Menu->Log Out->Restart)<br>
>> from the command-line? I figured a regular "reboot" is bad, since<br>>> sessions et al is not saved, and programs are probably more abruptly<br>>> closed.<br><br></div><div class="Ih2E3d">> To stop or start a GUI session:
<br>> Go to a terminal normally ctrl-alt-F1 will do<br>> log on as root<br>> type init 3<br>> this normally will shutdown the GUI<br>> type init 5<br>> this will restart the GUI<br>> go back to the terminal ctrl-alt-F1
<br>> Log out as root<br>> type exit<br><br>> I said normally above since I don't know what distro and though most<br>> will follow the init level rules there is no  absolute....<br><br></div>Init 3/init 5 doesn't work on most Debians, which don't do anything different
<br>in runlevels 2-5. '/etc/rc.d/kdm restart' as root or with sudo should get the<br>job done though on both Debians and non-Debians.<br><font color="#888888">--<br></font></blockquote></div><br>I actually want to reboot the computer, like "Restart" does in KDE, and the suggestions above doesn't do that. In other words, I want to do the KDE equivalent to /sbin/reboot (but still save session and whatever KDE does).Btw, I'm using Kubuntu 
7.10. Thanks,<br>/D<br><br>