UNIX sed Commands MCQs

By: Prof. Dr. Fazal Rehman | Last updated: May 30, 2025

20 Score: 0 Attempted: 0/20 Subscribe
1. : To add two spaces before every line in emp.lst, which command is used?





2. : Which of the following command is used for selecting lines containing gupta and agarwal?





3. : To replace the string Linux with Red hat Linux, which shortcut is offered by sed?





4. : To select lines 3 to 10 from emp.lst, which command is used?





5. : To use multiple instructions, which option do we use with sed?





6. : ___ option is used for suppressing the behavior of ‘p’ command of sed.





7. : We use ____ with sed for writing the selected lines.





8. : Which command is called stream editor?





9. : To perform substitution using sed, which is the correct syntax?





10. : To take instructions from a file, we use ______ option.





11. : To use sed the correct syntax is __________





12. : To quit after selecting 3 lines from the file emp.lst, which command is used?





13. : To get the output as well as printing the selected lines, which command is used with sed?





14. : To replace | with : globally, which command is used?





15. : Which of the following command is used to replace the string ‘director’ in first five lines of file emp.lst with ‘manager’?





16. : As anchoring characters, which characters are used with sed?





17. : Function of the following command will be: $ sed ‘s/ *|/|/g’ emp.lst





18. : Into ____ categories, the basic regular expressions are divided.





19. : _____ character is used by interval regular expression.





20. : In ___ the pattern should be enclosed for performing context addressing.





 

Next Operating System MCQs

Computer Science Repeated MCQs Book Download

Leave a Comment

All Copyrights Reserved 2025 Reserved by T4Tutorials