Unix - Engineering

Q1:

Which of the following keys is used to replace a single character with new text?

A S

B s

C r

D C

E None of the above

ANS:B - s

It is referring inline command (i.e start with esc and colon).

Ex1: s/+/ /g.

This command replace all plus (+) sign present in the file with space.

Ex2: s/I/You/g.

This command replace all "I" present in the file with "You".