NanoHowto

Differences between revisions 5 and 6
Revision 5 as of 2005-12-31 00:35:22
Size: 2051
Editor: S010600131016cf6f
Comment: add cats
Revision 6 as of 2006-06-19 16:07:28
Size: 53
Editor: 127
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
{{{
    Draft
}}}

= Nano Howto =

== Introduction ==

attachment:IconsPage/IconGNOMETerminal.png

This page will explain simple things with nano, and will give links to off site help.

== What is nano ==

Nano is a text editor that is not flashy or fancy. It is a clone of the pico editor which is shipped with the pine email client. Nano is nice to just make quick edits in text files, but most do not prefer it to do heavy editing. Other editor's such as "emacs", "vim", "gedit" all offer coloring of text and auto formating. Nano gets the job done without any distractions.

== How to start nano ==

To just start a regular nano session.

{{{
    bash:~$ nano -w <nameoffile>
}}}

This will open <nameoffile> into a editing window. You can create new files like this or edit existing files. The "-w" is present to disable wordwrapping, which can cause problems in some types of files.

== How to use nano ==

The basic controls for nano are shown on the bottom of the screen. The {{{^}}} mark means to hold the control key and press the letter following it. For example, ^X (quit) means hold control and press X. To see more nano commands, hit '''control-G'''. On the help screen, M- before a letter means to hold down Meta or Alt and press it. So M-M (enable mouse support) means hold alt and press M. nano uses some odd conventions:
 * '''WriteOut''' (control-O) - save
 * '''Cur Pos''' (control-C) - tells you what line and letter the cursor is on
 * '''Read File''' (control-R) - inserts the contents of another file
  * pressing Alt-F after control-R behaves just like an Open command in other text editors.
 * '''Where Is''' (control-W) - searches for some text in the file

The help screen explains most of the commands very well. Press Control-G to read it!

== Links ==

 * [http://www.nano-editor.org/ Nano site]
 * [http://www.nano-editor.org/dist/v1.2/nano.html Nano manual]

`note`: How does Justify/Unjustify work?

UserDocumentation

CategoryDocumentation CategoryCleanup
#REFRESH 0 http://help.ubuntu.com/community/NanoHowto

NanoHowto (last edited 2008-08-06 16:38:30 by localhost)