8.2. How to Edit System Configuration Files[id=kedit]

It's often nice to be able to edit system configuration files, like with grub or autopartit or bothersome videocard. For this purpose you need a tool, a text editor. We do not use things such as bold, underlining or fancy fonts in these files, so for this purpose we don't need a huge fancy application. There are already several such applications installed with your Skolelinux/Debian-edu system. Some of these are command line based, (vi, vim), while others have a graphical interface, like KEdit and emacs

Tip

Everybody should learn how to use the command line based editor vi/vim sooner or later, preferably sooner.

For starters, try using KEdit, you'll find it in K-menu->Text editors->Text editor

You should also try vi, vim. You find vim in K-menu->Text editors->Debian->Vim. Just follow the on-screen instructions.

Warning

Be warned- vi, vim are rather difficult to use in the beginning, but they're worth the effort in the long run.

If you are logged in as an ordinary user, say on a thin client, and need to edit some system files as root-user, then you can use the program kdesu and start the editor inside kdesu like this

kdesu kwrite

that way you can run the editor as the superuser root (of course, after you have typed the root password).