1.

Which command is used for displaying date in the format dd/mm/yyyy ?(a) date+%m(b) date +%h(c) date+”%d/%m/%Y”(d) date +”%h %m”The question was posed to me by my school principal while I was bunking the class.This interesting question is from Commands topic in division The Unix Architecture & General Purpose Utilities of Unix

Answer»

Correct option is (C) date+”%d/%m/%Y”

Explanation: Date COMMAND can use format SPECIFIERS as arguments with each specifiers PRECEDING with a + , followed by % operator and a single CHARACTER for describing the format.



Discussion

No Comment Found

Related InterviewSolutions