adplus-dvertising
frame-decoration

Question

Which command compares two sorted files line by line?

a.

cmp

b.

diff

c.

cmp

d.

sort

Posted under UNIX

Answer: (c).cmp

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which command compares two sorted files line by line?

Similar Questions

Discover Related MCQs

Q. What will be the command if we want to suppress column 1 and column 2 in the output of comm Command?

Q. For comm command to work properly, files specified should be sorted.

Q. Which command is used to display the differences between files?

Q. When two files are identical, what is the output of diff command?

Q. Which option is used to produce multi columnar output in diff command?

Q. If we are interested in knowing that whether the two files are identical or not, we can use ___ command.

Q. wc command cannot take multiple filenames as arguments.

Q. Which option is used for counting the number of lines in a file only ?

Q. Which option is used for counting the number of words in a file only?

Q. Which option is used for counting the number of characters in a file only.

Q. wc command can also work on a data stream.

Q. What does the following command do?

$ wc sample.txt > newfile

Q. Which command is used for printing a file?

Q. Which option is used with lp command if there are more than one printers in the system?

Q. Which option is used for printing multiple copies of a file using lp command?

Q. –t option prints the title on the first page.

Q. What does the following command do?

cancel prl-320

Q. Which one of the following extension is provided by gzip to the compressed filename?

Q. Which option is used with gzip command to check compression ratio for files?

Q. We can provide original filenames without .gz extension while checking compression ratio using gzip – l?