1. Which of the following commands will be used to delete 6 lines from the current cursor location?
2. Which command is used for putting deleted lines or part of lines at a different location?
Correct Answer is : p and P
3. Both ‘p’ and ‘P’ command puts text right/left or above/below on the basis of line deleted.
4. To copy (yank) lines in vi editor, we use ______ command.
5. To copy 10 lines from the current cursor location, we can use _____
6. We can use ‘yy’ command for copy and paste operation.
7. Which command is used for joining lines?
8. Which command will be used to join 4 lines with the current line?
9. Which of the following undo a most recent single editing change?
10. ___ command allows us to undo a number of changes that have been made to a single line before moving away from that line.
11. Which command is used to redo the changes made by the undo command?
Correct Answer is : ctrl-r
12. ’10u’ command will reverse our 10 last editing actions.
13. Which symbol is used for repeating the last command?
14. Which command is used for printing the current working directory?
15. Which command is used for changing the current directory?
16. cd command cannot be used without any argument.
Correct Answer is : FALSE
17. Which command is used for creating directories?
Correct Answer is : mkdir
18. We can create multiple directories by single invocation of mkdir command.
19. What does the following command do?
$ mkdir dir dir/dir_01/dir_02
Correct Answer is : create dir, dir_01 and dir_02
20. Sometimes we are unable to create a directory because ______________
Correct Answer is : the directory may exist, there may be an ordinary file, the permissions set for the current directory does not allow the creation