1.

Which command is used as an alternative to echo command?(a) ls(b) printf(c) wc(d) psThe question was posed to me in an online quiz.My query is from General Purpose Commands in chapter The Unix Architecture & General Purpose Utilities of Unix

Answer»

Correct choice is (b) printf

The explanation is: printf command is AVAILABLE on most UNIX systems and it behaves MUCH like a SUBSTITUTION for echo command. It SUPPORTS many of the formats which are used by C’s printf function. printf is also an EXTERNAL command.



Discussion

No Comment Found

Related InterviewSolutions