Ubuntu – How to run applications as root


I am having some strange issue with Kate and Kwrite. When I click on Open File, it crashes with segmentation fault.

I am a complete newbie to Linux, and I think the issue is that I am not running the application as root.

How do I run applications as root in Ubuntu? Is it bad practice to do this? What is the purpose of the whole root thing, where even though we need to use root so frequently, it is not utilized as default?

Best Answer

It is pretty simple to run a program as root.

For a console program use

sudo <program name>

If it is a GUI application use

gksudo <program name>