Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-26-2007, 09:50 PM   #1
Registered: Feb 2007
Distribution: Slackware
Posts: 37

Rep: Reputation: 15
source code of cmp

i am interested in the source code of cmp this command
i am currently using debian sarge.
is this source code available and by what way to get it?
Old 12-26-2007, 09:55 PM   #2
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
cmp (compare utility) just compares two files a byte at a time... you should be able to write it!

Under the terms of the gpl, the distributer is required to make the source code available... that would be debian. Go to debian website and follow instructions - the usual approach is to enable the source repos and use apt to locate and pull the package you need.
Old 12-27-2007, 05:59 AM   #3
Registered: Aug 2006
Location: Saint Paul, MN, USA
Distribution: {Free,Open}BSD, CentOS, Debian, Fedora, Solaris, SuSE
Posts: 735

Rep: Reputation: 76

If you are interested in the methods, the perl Power Tools project aims at producing a perl script for each of the commands in *nix.

The version of cmp is at

Best wishes ... cheers, makyo


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cmp and 2.6.18 thermite_1033 Slackware 3 10-07-2006 04:55 AM
LXer: Voip Encryption, source code open source LXer Syndicated Linux News 0 07-09-2006 04:21 PM
Help me where to find 'cmp' sohard2reg Amigo 1 03-19-2005 03:54 AM
which should I use? diff cmp comm Frybyte Linux - Newbie 2 07-19-2004 09:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration