COURSE: Operating System For Novice TOPIC: Using Text Editor - VI Lab No: 2 Duration: 2H
COURSE: Operating System For Novice TOPIC: Using Text Editor - VI Lab No: 2 Duration: 2H
LAB No : 2 DURATION: 2H
Instruction:
1. Read and follow the simple notes given
2. Do the exercise given
Notes
The vi editor is available on almost all Unix systems. vi can be used from any type of terminal
because it does not depend on arrow keys and function keys--it uses the standard alphabetic
keys for commands.
vi (pronounced "vee-eye") is short for "vi"sual editor. It displays a window into the file being edited
that shows 24 lines of text. vi is a text editor, not a "what you see is what you get" word processor.
vi lets you add, change, and delete text, but does not provide such formatting capabilities as
centering lines or indenting paragraphs.
command mode
insert mode
LAB No : 2 DURATION: 2H
“The recent research activities in the field of nonlinear dynamics and especially on systems with
complex (chaotic) behavior have forced a lot of investigations on possible applications of such
systems. Among them also the field of chaotic encryption appeared. While initially the publications
on chaotic encryption were discussed also in the community of applied cryptography [1]–[4], this
interdisciplinary debate seems to have ceased. Today, chaotic encryption is almost exclusively
considered inside the nonlinear systems community.”
COURSE: Operating System for Novice
TOPIC: Using text editor - VI
LAB No : 2 DURATION: 2H
(ii) Leaving vi
No. Purpose Command
1 Edit the already created file vi <Filename>
2 Add some words a or i
3 save :w, Enter
4 Quit vi :q, Enter
5 Edit the file again vi <Filename>
6 Add some lines O, o , a or i
7 Quit vi with save :wq, Enter
8 Input a line Locate position, Key “o” or “O”, Esc
9 Quit vi without save :q!, Enter