03 Linux Applications Flashcards
What are the reasons for using text editors in Linux?
Scripts are written in texts editors.
Many Linux programs use text-based data files for input.
Many of Linux-operating system services use configuration files that are text-based.
What are the common text based editors used in Linux? (4)
emacs
nano
gedit
vi
It ca be customized and extended with different modes, enabling it to be used like IDE for programming languages such as Java or C.
emacs
It is a text editor designed for beginners.
nano
It comes with the Gnome desktop. It only runs in the GUI environment.
gedit
It is a native editor found in all Linux and Unix systems.
vi
What are the three (3) modes of vi editor?
command
insert
replace
Mode of vi editor that operate as a command rather than characters entered into the document.
command
Mode that any character entered is placed at the current cursor position.
insert
Mode that any character entered replaces the character at the current cursor posiion.
replace
Cursor movement command that moves one character to the right.
l or Right arrow
Cursor movement command that moves one character to the left.
h or Left arrow
Cursor movement command that moves one line down.
j or Down arrow
Cursor movement command that moves one line up.
k or Up arrow
Cursor movement command that moves to the beginning of the current line.
0
Cursor movement command that moves to the first non-whitespace character on the current line.
Cursor movement command that moves to the end of the current line.
&
Cursor movement command that moves to the beginning of the next word or punctuation character.
w
Cursor movement command that moves to the beginning of the word, ignoring the punctuation character.
W
Cursor movement command that moves one page down.
Ctrl+f or Page Down
Cursor movement command that moves one page up.
Ctrl+b or Page Up
Cursor movement command that moves to the line number.
numberG