Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We'll go over nano together in class, but you may find these other options more useful for your day-to-day work.

Table of Contents
Expand
nano on Lonestar via ssh
nano on Lonestar via ssh

nano on Lonestar via ssh

nano is a very simple editor available on most Linux systems. If you are able to use ssh, you can use nano.

To invoke it, just type:

Code Block
titleHow to start the nano text editor
nano

You'll see a short menu of operations at the bottom of the terminal window. The most important are:

  • ctl-o - write out the file
  • ctl-x - exit nano
    You can just type in text, and navigate around using arrow keys. A couple of other navigation shortcuts:
  • ctl-a - go to start of line
  • ctl-e - go to end of line

Be careful with long lines – sometimes nano will split long lines into more than one line, which can cause problems in our commands files, as you will see.

...