User Tools

Site Tools


cluster:text_editing

This is an old revision of the document!


Table of Contents

Text Editing

It is possible that you might need to tweak your programs or to view output files. There are many options to edit text on a Linux system. Some are text-only (console mode) and some use a graphical user interface.

Nano

Nano is a very simple console text editor. To use it to edit a file, type:

$ nano [file name]

Note that nano may automatically wrap long lines (unless started with -w) and it does not have an undo function.

Vim

You can run Vim with:

$ vim

Upon starting Vim, you will be in 'command mode'. In command mode, you cannot actually edit a file. To edit the file type i to enter 'insert mode' and type Esc to return to 'command mode'. A tutorial is available for Vim, by typing :help and pressing enter (in command mode). To quit, type :quit+Enter (in command mode).

cluster/text_editing.1731357097.txt.gz · Last modified: 2024/11/11 20:31 (external edit)