Text Editor Flashcards

(26 cards)

1
Q

What is the purpose of Linux text editors?

A

They allow creation and modification of files directly in the terminal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are text editors used for in Linux?

A

Writing notes or editing important system configuration files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why are text editors essential for Linux administrators?

A

They help in managing scripts and troubleshooting.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Nano compared to in the analogy?

A

A ballpoint pen.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Vi/Vim compared to in the analogy?

A

A fountain pen requiring practice but offering precision and power.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What type of editor is Nano?

A

The simplest terminal text editor in Linux.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Who is Nano suitable for?

A

Beginners.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does Nano allow upon opening?

A

Immediate typing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Where are Nano shortcuts listed?

A

At the bottom of the editor.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does Ctrl + O do in Nano?

A

Writes the file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does Enter do in Nano?

A

Confirms the save.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does Ctrl + X do in Nano?

A

Exits Nano.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Example command to open a file in Nano?

A

nano /etc/config-file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are Vi and Vim?

A

Advanced text editors with more features.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Why are Vi/Vim not intuitive?

A

They require understanding of modes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Command Mode in Vim?

A

Default mode used for navigation and editing.

17
Q

How do you enter Insert Mode in Vim?

A

Press ‘i’ in Command Mode.

18
Q

How do you exit Insert Mode in Vim?

19
Q

What is Execute Mode in Vim?

A

Mode for saving, quitting, searching, and replacing text.

20
Q

How do you enter Execute Mode in Vim?

A

Press : in Command Mode.

21
Q

What does :wq do in Vim?

A

Saves and quits (write and quit).

22
Q

What does :q! do in Vim?

A

Quits without saving (! forces execution).

23
Q

What does :set hlsearch do?

A

Highlights all matches of the last search query.

24
Q

What does :s/old/new/g do?

A

Replaces all occurrences of ‘old’ with ‘new’ in the current line.

25
What does :!ls do?
Runs shell commands without leaving Vim (lists files in the directory).
26
What are advantages of Vim?
Efficient for scripting, useful remotely, requires practice, increases editing speed.