Difference between revisions of "Tutorials and How-tos/Edit Text Files with nano"

From BubbaWiki
Jump to navigation Jump to search
(Created page with 'For simple editing of text files you could use the editor called nano. To edit the Debian sources file, type: <pre>nano /etc/apt/sources.list</pre> The file then opens in the na...')
 
Line 1: Line 1:
For simple editing of text files you could use the editor called nano.
For simple editing of text files you could use the editor called nano.  


To edit the Debian sources file, type:
To edit the Debian sources file, type:  
<pre>nano /etc/apt/sources.list</pre>
<pre>nano /etc/apt/sources.list</pre>  
The file then opens in the nano editor.
The file then opens in the nano editor.  


When done editing, press Ctrl + X on your keboard. You will be asked if you whant to save the changed. Press Y to do so.
When done editing, press Ctrl + X on your keyboard. You will be asked if you want to save the changed. Press Y to do so.  


All done!
All done!  


<br>
<br>

Revision as of 14:03, 22 April 2010

For simple editing of text files you could use the editor called nano.

To edit the Debian sources file, type:

nano /etc/apt/sources.list

The file then opens in the nano editor.

When done editing, press Ctrl + X on your keyboard. You will be asked if you want to save the changed. Press Y to do so.

All done!