Editing files

From Ndiyo

Jump to: navigation, search

In various places in the documentation, we suggest that you edit files.

Assuming that you're running a Terminal window (which can be started from the Applications > Accessories menu), you can start an editor by running the gedit program and giving it a filename. For example,

 $ gedit myfile.txt

(Note that in all of our examples of things you should type in the Terminal window, we include a $ to indicate the prompt, which may be different on your machine. You don't need to type the $).

Many of the files that need changing are system files and cannot be edited by normal users. If you are logged in as a user with administrator privileges, you can run a command as an administrator by prefixing it with the command sudo, which is short for 'do as superuser':

 $ sudo gedit /etc/network/interfaces

You'll be prompted to enter your password before continuing unless you've done another sudo in the very recent past.

wiki navigation
ndiyo project