Home > Linux > Quizzes > Linux Basics Practice Test: VI Editor & sed Editor
Linux Basics Practice Test: VI Editor & sed Editor
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 26% Most missed: “Which one of the following statement is not true?”
The sed command is a text stream editor in Linux that can perform many functions on files, including searching, finding and replacing, inserting, deleting, and matching regular expressions. The sed command can be used to edit files without opening them. The syntax for the sed command is sed OPTIONS... (SCRIPT) (INPUTFILE...).  Vi is a text editor that has the inline editor version of sed called sed. Here are some examples of using sed: sed 'p' BSD: Prints each line of the BSD file twice sed -n 'p' BSD: Suppresses automatic printing sed -n '1p' BSD: Prints the first line of the file sed... Show more
Linux Basics Practice Test: VI Editor & sed Editor
Time left 00:00
19 Questions

1. Which command shows all the abbreviations in vi editor?
2. Which sed command deletes the specified address range
3. In vi editor, which command reads the content of another file?
4. Which command is used to delete the character before the cursor location in vi editor?
5. Which one of the following statement is not true?
6. Which command is used to replace word ‘cat’ (already present in the file) with ‘mouse’ at all places in a file ‘old.txt’ and save the result in a new file ‘new.txt’?
7. In vi editor, the key combination CTRL+f
8. Which vi editor command copies the current line of the file?
9. Which command searches the string in file opened in vi editor?
10. If any sed command does not specify any address then the command is applied to
11. Which is the correct syntax for sed on command line?
12. If no file is specified in sed command then
13. The command “sed -n ‘/fatskills/p’ old.txt” will
14. Sed maintains the hold space (a buffer) to
15. Which command is used to close the vi editor?
16. Which command will delete all the blank lines in file old.txt?
17. Which command sets the number for all lines?
18. Which option is used by sed to specify that the following string is an instruction or set of instructions?
19. Which one of the following statement is true?