Text Editor Flashcards
1
Q
Example of Linux text editors ?
A
+ Basic editors: nano, gedit
+ Advance editors: vi, emacs
2
Q
What is the result of these command lines ?
$ echo line one > myfile
$ echo line two»_space; myfile
$ echo line three»_space; myfile
A
A new file called myfile with content as followed:
line one
line two
line three
3
Q
What does»_space; in this command “echo something»_space; myfile” does ?
A
Append whatever appears after “echo” to the file called “myfile”.
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