Nano

From MEPIS Documentation Wiki

Jump to: navigation, search

Contents

Introduction

Nano is a simple text editor that is called in a shell and controlled by control keys.

Calling Nano

In a shell, type:

nano

or to open a file:

nano /path/to/file

Basic Uses

ctrl-r to open a file (input filepath)

ctrl-o to write a file (input filepath, output file)

ctrl-x to exit --

  • if it is a new file it will ask if you would like to save (input y/n/cancel) if yes(input filepath, output file)
  • if it is a file which has been opened and edited it will ask if you would like to save (input y/n/cancel) if yes(output file)
  • if it is an empty or unchanged, nano will exit

Internal Options

ctrl-c to view your current position in a document (line (%), column (%), character (%))

ctrl-y page up

ctrl-v page down

ctrl-w locate string

ctrl-k cut line

ctrl-u paste cut line

ctrl-t spell check (package 'spell' must be installed)

Help

man nano

ctrl-g internal help

nano -h

Personal tools
In other languages