what is the difference between commmands cmp and diff?

Answer Posted / bandi sreekanth

CMP:is used to compare two files by byte by byte process

DIFF:is used to compare files by line by line and list the defference between two files to standard output.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the nmap command?

588


What is command substitution?

627


What is rmdir command?

555


How do I clear my terminal history?

588


What is the command to compare two files in unix?

624






What is the command to view process running?

578


What is the difference between grep and grep?

569


Write a command to display a file’s contents in various formats?

629


What is the search command in unix?

607


What is the first character of the output in ls l command?

637


Why is it called a shebang?

574


What is the general format of unix command syntax?

696


Describe the zip/unzip command using gzip.

615


What is the use of tee command?

573


Which command can you use to find the currently running process in unix server?

590