When booting, I'd like to see the kernel output without having to edit the GRUB line on each boot. How can I do that?

3 Answers 3


Open a terminal and type the following:

sudo  gedit /etc/default/grub

Then look for a line like this in the opened file:


It may have other options there as well, but just remove quiet splash and:

sudo update-grub
  • 1
    the final step is to run sudo update-grub for any changes made to the grub.config file to be used, otherwise any changes made will not take effect until grub runs an update for another reason(like a new kernel install), otherwise your answer is good....also the question does not say which version of Ubuntu...if newer than 12.10(?maybe) gksudo will not be installed by default the correct way in that case is sudo -i gedit.......
    – TrailRider
    Jun 6, 2014 at 20:06
  • Ah yes forgot the sudo update-grub! My bad! I didn't know that about gksudo, thanks for the info, and the -i sudo tip!
    – Duncubuntu
    Jun 6, 2014 at 20:08
  • @TrailRider , the correct one (from now on) is pkexec and not gksudo (as you said correctly it has been removed due to some problems).
    – NickTux
    Jun 6, 2014 at 20:25
  • @NikTh I know that pkexec was going to replace gksudo, however I don't know if it did, last I knew it was not installed be default either, it may be now, but I know that sudo -i does work.....thank you for letting me know that pkexec is now available...
    – TrailRider
    Jun 6, 2014 at 21:30

Open a terminal (Ctrl+Alt+T) and issue the following command

pkexec gedit /etc/default/grub 


sudo -H gedit /etc/default/grub

I assume here that gedit is installed on your system, if you prefer another editor use the appropriate name (e.g. leafpad, kate...etc).

Search, find and edit the line




proofread, save the document and then run in terminal

sudo update-grub 
  • Thank your too for your reply. When I tried to ran your first line, it didn't work: ~$ pkexec gedit /etc/default/grub error: XDG_RUNTIME_DIR not set in the environment. (gedit:6024): Gtk-WARNING **: cannot open display:
    – henry
    Jun 7, 2014 at 7:46
  • Although your comments to the other reply explains it, I'm too unfamiliar with this particular program so I just used sudo.
    – henry
    Jun 7, 2014 at 7:47
  • I added sudo again as an alternative. At 14.04 (that I have) pkexec works as it should. It seems that you have to provide some variables in order for pkexec to work properly. Try pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gedit
    – NickTux
    Jun 7, 2014 at 11:39

It's in /etc/default/grub. Make your changes there and update grub with sudo update-grub

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.

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