1.

Which option is used with cmp command to limit the number of bytes to be compared?(a) -n(b) -l(c) -f(d) -bI have been asked this question during an online exam.The above asked question is from Comparing Files:comm, cmp and diff Command topic in section Handling Ordinary Files of Unix

Answer»

Correct option is (a) -n

The explanation: We can limit the number of bytes to be compared by the cmp COMMAND by using -n option with it. For EXAMPLE, if we want to compare at most 50 bytes then the command will be written as:



Discussion

No Comment Found

Related InterviewSolutions