You are Here: FAQ ->Web Space & Access->Secure Shell Access (SSH)->Article #6


Important commands while using the editor in SSH.


The editor on our servers is "vi"
Editor vi is a little confusing. vi has two modes.
In the so-called command mode, one enters "commands" for example "store the file"
etc. Keyboard entries in this mode are not visible as text to the editing file, but
rather are interpreted as commands.

The second mode, an entry mode, can be reached by using an insert command. In most
cases it is the i (insert) or the insert (insert) key. In this mode, the symbols
that are entered from keyboard are immediately inserted in the text.

You can reach the command mode once again by pressing the Esc key. Pressing this
key continuously doesn’t hurt the program, it just beeps more.

Here are the important commands:
Please be aware that all commands that begin with a colon ( : )have to be closed by
using RETURN.
Command Explanation
dd delete current line
u undo last change
x delete the symbol under the cursor
j combine the lines
o insert a new line under the current one
p insert data from your storage space to the cursor position
:q exit Editor
:q! exit Editor without storing the text.
:wq save the text and exit Editor
i jump to the entry mode, enter text at the cursor position.


SW3B406


Print Article
How useful was this article?
(From 5 = Very Useful to 1 = Not useful at all):
1 2 3 4 5