Wayne State University

AIM HIGHER

Wayne State University

High Performance Computing Services

nano

HOW TO EDIT TEXT USING THE NANO TEXT EDITOR

Follow these steps to use the nano text editor.
Logon to the Grid.
Use nano to modify one of your files. In this example, I am editing the text file "Grid_User". Type nano filename then press Enter.

  Input: nano Grid_User
You will now see the text of the original file.

  Text input into nano: Hello. My name is Grid User. Have a nice day. We can use the Grid for research.
Text can be easily inserted by moving around in the document with the arrow keys to the desired place. Here one sentence was added beneath the previous text.

  Text input into nano: Hello. My name is Grid User. Have a nice day. We can use the Grid for research. This is a tutorial in using nano for text editing.
When you are finished editing, you should save the document. You can do this one of two ways:
First, you can choose to write the changes to the file. To do this, press Control and O. (Note that this is listed on the bottom of the screen (^O Write Out), where the carat sign (^) stands for the control key. You can save this way if you want to save but not exit just yet. A screen will appear asking you the name you want to save the file as. Press enter when finished.

  Save prompt: File Name to Write: Grid_User

Another way is to quit nano (Press Control and X). If you havn't saved, then you will be prompted to do so if you like. Press "Y" to save and "N" not to save. To cancel and return to the document, press Control and C. Once you chose to save, you will be prompted as to what name to save it as. Press enter once inputting.

  Exit prompt: Save modified buffer (ANSWERING No WILL DESTROY CHANGES) ?
You have now edited a file and saved it.
Computer Center Services * 5925 Woodward Avenue Detroit, Michigan 48202