Documente Academic
Documente Profesional
Documente Cultură
Unit-8 : Vi Editor
7. How will you replace had with has with the minimum keystrokes?
8. What is the command to open vi editor?
9. How do you move two lines from the beginning of a file to the end?
10. How do you combine 4 lines to one?
11. How do you change an entire line consisting of only lowercase letters to uppercase?
12. How will you ensure that vi automatically saves a file when moving from one file to another?
13. How do you forward to end of word?
14. What are the two ways in which we can change the rest of the line?
15. How do you replace the occurrence of ‘and’ with ‘AND’ in current line?
16. What does the command ‘n’ do?
17. What does ?string command do?
18. Which command would we use if we want to down (forward) 1/2 screen?
Unit - 9 : Shell Programming
1. What is a shell script?
2. Write a shell script to calculate sum of digits entered?
3. How a shell script is executed in terminal?
4. What are variables and how they are created?
5. How we references variables in a script?
6. What is expr command used in script?
7. How you use test command with if loop?
8. What happen to control if a exit command is encountered in a script?
9. What are use of break and continue statement?
10. Describe environment variables of UNIX.
11. How do you access values of an array?
12. Describe the various constructs along with examples.
13. How do you reference a variable?
14. What does the dot command do?
15. List some meta characters.
16. What is the difference between @ and ! in pattern matching.
17. Define command and variable substitution.
18. What is flow control?
19. Write the syntax of a shell function.
20. How is a function called from the prompt?