My Report

Unix Practice Test 7


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. The output of the following command will be:

$ uniq  foo1 foo2 

2. Which of the following is not a special parameter used by the shell?

3.

head -n 3 emp.lst | tr ‘[a-z]’  ‘[A-Z]’

Above command will change the case of text from lower to upper.

4. Which option is used by the sort command to redirect the output to a specified file?

5. read command is shell’s internal tool.

6. The syntax for using && is ______________

7. grep command supports both extended and regular expressions.

8. When we use &&, the second command is executed only when first succeeds.

9. The interval regular expression uses the character _______

10. Which command is used for making the scripts interactive?


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.