In this section, we will take a look at console based text editors in linux.
cat
when dealing with large amounts of text or for writing code. This is why we use text editorsThere are several options available, we will be focusing on the VI Editor
.
VI
Editor.vi
followed by the filename that you want to create or append.
$ vi /home/michael/sample.txt
COMMAND MODE
first.INSERT MODE
type lower case i
ESC
button.I
, o
, O
, a
, or A
:
key will take you to the LAST LINE MODE
ESC
key to go back to the command mode.## Command Mode
## Insert Mode
## Last Line Mode
#### There is another popular editor called VIM
which is an improved version of VI
with added features but very similar in appereance to VI.
In the most distros today, the VI is the symblic to the VIM editor