Quiz Space

System Commands · End Term · 13 Apr 2025 · January 2025 term

Question 8: Which of the following vi command is used to replace the …

Question 8

+6 marksOne correct option

Which of the following vi command is used to replace the word 'apple' with 'orange' only in lines 10 to 20 of a file, and appear at the beginning or end of the line, without case sensitive and without user interaction.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • D

Question 8 of 16 in the IIT Madras BS System Commands (System Commands) End Term paper sat on 13 Apr 2025, in the January 2025 term (IIT M DIPLOMA FN EXAM QDD1 13 Apr 2025). It carries 6 marks.

More questions from this paper

  1. Q1What will be the output of the command given the following content of file1.txt and file2.txt? | <u>file1.txt</u> | <u>…
  2. Q2Schedule the script /home/user/backup.sh to meet the following requirements\ The job should run at the 2nd minute of ev…
  3. Q3What is the primary purpose of this AWK script?
  4. Q4Figure question
  5. Q5Select a single sed command to achieve the following.\ a) Find all lines that start with the word "error".\ b) Replace …
  6. Q6Consider current_permissions contain the present permissions of a file. Which of the following shell script statement c…
  7. Q7Select a command to find all established suspicious TCP connections on port 80 using netstat
  8. Q9Figure question
  9. Q10Figure question
  10. Q11Figure question
  11. Q12Figure question
  12. Q13You are working in a team with multiple developers using Git. One of your colleagues has created a feature branch from …
  13. Q14Figure question
  14. Q15Figure question
  15. Q16Figure question