1.

Which command is used to display the documentation of commands in UNIX?(a) help(b) search(c) whatis(d) manI got this question in an interview.This interesting question is from Commands in section The Unix Architecture & General Purpose Utilities of Unix

Answer»

Right choice is (d) man

The explanation is: UNIX provides US with a facility of man command, which is used for getting documentation of any command. For example, to SEEK help on wc command simply type man wc. This will simply display all the possible operations, options, description, synopsis of wc command. The POSIX specification requires only one available option with man command i.e.-k, which prints a one-line description of the command. whatis command is ALSO available on many UNIX systems which also DISPLAYS a one-line description of the command. man -F emulates the behavior of whatis command.



Discussion

No Comment Found

Related InterviewSolutions