![]() In addition to this, the optional SKIP1 and SKIP2 specify the number of bytes to skip at the beginning of each file which is zero by default and OPTION refers to the options compatible with this command about which we will discuss later on.Ĭmp Example : As explained that the cmp command reports the byte and line number if a difference is found. If we are comparing two files then obviously we will need their names as arguments ( i.e as FILE1 & FILE2 in syntax). The syntax of cmp command is quite simple to understand. FILE1 ]]Īnd FILE1 & FILE2 refer to the filenames. cmp displays no message and simply returns the prompt if the the files compared are identical.When cmp is used for comparison between two files, it reports the location of the first mismatch to the screen if difference is found and if no difference is found i.e the files compared are identical.ISRO CS Syllabus for Scientist/Engineer ExamĬmp command in Linux/UNIX is used to compare the two files byte by byte and helps you to find out whether the two files are identical or not.ISRO CS Original Papers and Official Keys.GATE CS Original Papers and Official Keys.
0 Comments
Leave a Reply. |