Edit Files in the Terminal Flashcards

1
Q

What name should the nano configuration file must have?

A

.nanorc

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

How do i set tabs to spaces in the nano configuration file?

A

set tabstospaces

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

How to set tabs to n number of spaces in the nano configuration file?

A

set tabsize n

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

What is the command to stop the execution for n seconds with bash?

A

sleep n

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

What is the shortcut to stop a running script?

A

CTRL + C

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

What is the command to delete a line in vim?

A

tapping twice the D key

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

What is the command to convert tab into spaces in vim?

A

set expandtab

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

What name should the vim configuration file must have?

A

.vimrc

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

How to set tabs to n number of spaces in the vim configuration file?

A

set tabstop=n

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

How to set the indentation to auto with vim?

A

set autoindent

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

What is the command to open the tutorial of vim?

A

vimtutor

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