Text Editor Flashcards

1
Q

Example of Linux text editors ?

A

+ Basic editors: nano, gedit

+ Advance editors: vi, emacs

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

What is the result of these command lines ?
$ echo line one > myfile
$ echo line two&raquo_space; myfile
$ echo line three&raquo_space; myfile

A

A new file called myfile with content as followed:
line one
line two
line three

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

What does&raquo_space; in this command “echo something&raquo_space; myfile” does ?

A

Append whatever appears after “echo” to the file called “myfile”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
What is the result of these command lines ?
$ cat << EOF > myfile
> line one
> line two
> line three
> EOF
$
A

Create a new file called “myfile” with content as followed:
line one
line two
line three

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