FACTOID # 130: In Belgium, 55% of government ministers are female. The country’s first female parliamentarian was appointed in 1921.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RELATED ARTICLES
People who viewed "Diff" also viewed:
RECENT ARTICLES
More Recent Articles »
 

SEARCH ALL

FACTS & STATISTICS    Advanced view

Search encyclopedia, statistics and forums:

 

 

(* = Graphable)

 

 


Encyclopedia > Diff

In computing, diff is a file comparison utility that outputs the differences between two files, or the changes made to a current file by comparing it to a former version of the same file. Diff displays the changes made per line for text files. Modern implementations also support binary files[1]. The output is called a diff or a patch since the output can be applied with the Unix program patch. The output of similar file comparison utilities are also called a "diff". Like the use of the word "grep" for describing the act of searching, the word diff is used in jargon as a verb for calculating any difference. For the formal concept of computation, see computation. ... File comparison in computing is the automatic comparing of data between files on a file system. ... A Hexdump of a JPEG image. ... Filiation of Unix and Unix-like systems Unix (officially trademarked as UNIX®, sometimes also written as or ® with small caps) is a computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs including Ken Thompson, Dennis Ritchie and Douglas McIlroy. ... patch is a Unix program that updates text files according to instructions contained in a separate file, called a patch file. ... grep is a command line utility that was originally written for use with the Unix operating system. ... For the glossary of hacker slang, see Jargon File. ...

Contents

History

The diff utility was developed in the early 1970s on the Unix operating system which was emerging from AT&T Bell Labs in Murray Hill, New Jersey. The final version, first shipped with the 5th Edition of Unix in 1974, was entirely written by Douglas McIlroy. This research was published in a 1976 paper co-written with James W. Hunt who developed an initial prototype of diff.[2] Filiation of Unix and Unix-like systems Unix (officially trademarked as UNIX®, sometimes also written as or ® with small caps) is a computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs including Ken Thompson, Dennis Ritchie and Douglas McIlroy. ... This article is about the current AT&T. For the 1885-2005 company, see American Telephone & Telegraph. ... Bell Laboratories (also known as Bell Labs and formerly known as AT&T Bell Laboratories and Bell Telephone Laboratories) was the main research and development arm of the United States Bell System. ... Portrait of Douglas McIlroy taken at the NATO conference in Garmisch 1968, courtesy of Brian Randell. ...


McIlroy's work was preceded and influenced by Steve Johnson's comparison program on GECOS and Mike Lesk's proof program. proof also originated on Unix and, like diff, produced line-by-line changes and even used angle-brackets (">" and "<") for presenting line insertions and deletions in the program's output. The heuristics used in these early applications were, however, deemed unreliable. The potential usefulness of a diff tool provoked McIlroy into researching and designing a more robust tool that could be used in a variety of tasks but perform well in the processing and size limitations of the PDP-11's hardware. His approach to the problem resulted from collaboration also with individuals at Bell Labs including Alfred Aho, Elliot Pinson, Jeffrey Ullman, and Harold S. Stone. Stephen Curtis Johnson spent nearly 20 years at Bell Labs and AT&T, where he wrote Yacc, Lint, and the Portable C Compiler. ... GECOS stands for General Electric Comprehensive Operating system. ... Mike Lesk is a computer program writer who created the lex programming tool, a program for Unix computers, with Eric E. Schmidt. ... For other uses, see Heuristic (disambiguation). ... The PDP-11 was a 16-bit minicomputer sold by Digital Equipment Corp. ... Dr. Alfred V. Aho is a computer scientist. ... Jeffrey D. Ullman (born November 22, 1942) is a renowned computer scientist. ...


In the context of Unix, the use of the ed line editor provided diff with the natural ability to create machine-usable "edit scripts". These edit scripts, when saved to a file, can, along with the original file, be reconstituted by ed into the modified file in its entirety. This greatly reduced the secondary storage necessary to maintain multiple versions of a file. McIlroy considered writing a post-processor for diff where a variety of output formats could be designed and implemented, but he found it more frugal and simpler to have diff be responsible for generating the syntax and reverse-order input accepted by the ed command. In 1985, Larry Wall composed a separate utility, patch, that generalized and extended the ability to modify files with diff output. Modes in Emacs also allow for converting the format of patches and even editing patches interactively. The text editor ed was the original standard on the Unix operating system. ... In computer storage, secondary storage, or external memory, is computer memory that is not directly accessible to the central processing unit of a computer, requiring the use of computers input/output channels. ... Larry Wall Larry Wall (born September 27, 1954) is a programmer, linguist, and author, most widely known for his creation of the Perl programming language in 1987. ... patch is a Unix program that updates text files according to instructions contained in a separate file, called a patch file. ... This article is about the text editor. ...


In diff's early years, common uses included comparing changes in the source of software code and markup for technical documents, verifying program debugging output, comparing filesystem listings and analyzing computer assembly code. The output targeted for ed was motivated to provide compression for a sequence of modifications made to a file. The Source Code Control System (SCCS) and its ability to archive revisions emerged in the late 1970s as a consequence of storing edit scripts from diff. Source Code Control System (SCCS) was the first source code revision control system. ...


Project Xanadu is a conceptual predecessor of diff. It was a hypertext project first conceived in 1960 that was to include a version tracking system necessary for its "transpointing windows" feature. The feature subsumed file differences in the expansive term "transclusion", where a document has included in it parts of other documents or revisions. Project Xanadu was founded by Ted Nelson in 1960 as the original hypertext project. ... In computer science, some hypertext systems, including Ted Nelsons Xanadu Project, have the capability for documents to include sections of other documents by reference, called transclusion. ...


Algorithm

The operation of diff is based on solving the Longest Common Subsequence (LCS) problem. The longest common subsequence problem (LCS) is finding a longest sequence which is a subsequence of all sequences in a set of sequences (often just two). ...


In the LCS problem, you have two sequences of items:

 a b c d f g h j q z 
 a b c d e f g i j k r x y z 

and you want to find the longest sequence of items that is present in both original sequences in the same order. That is, you want to find a new sequence which can be obtained from the first sequence by deleting some items, and from the second sequence by deleting other items. You also want this sequence to be as long as possible. In this case it is

 a b c d f g j z 

From the longest common subsequence it's only a small step to get diff-like output:

 e h i q k r x y + - + - + + + + 

Usage

It is invoked from the command line with the names of two files: diff original new. The output of the command represents the changes required to make the original file become the new file.


If original and new are directories, then diff will be run on each file that exists in both directories. An option, -r, will descend any matching subdirectories to compare files between directories.


Any of the examples in the article use the following two files, original and new:

original:

 This part of the document has stayed the same from version to version. It shouldn't be shown if it doesn't change. Otherwise, that would not be helping to compress the size of the changes. This paragraph contains text that is outdated. It will be deleted in the near future. It is important to spell check this dokument. On the other hand, a misspelled word isn't the end of the world. Nothing in the rest of this paragraph needs to be changed. Things can be added after it. 

new:

 This is an important notice! It should therefore be located at the beginning of this document! This part of the document has stayed the same from version to version. It shouldn't be shown if it doesn't change. Otherwise, that would not be helping to compress anything. It is important to spell check this document. On the other hand, a misspelled word isn't the end of the world. Nothing in the rest of this paragraph needs to be changed. Things can be added after it. This paragraph contains important new additions to this document. 

The command diff original new produces the following normal diff output:

 0a1,6 > This is an important > notice! It should > therefore be located at > the beginning of this > document! > 8,14c14 < compress the size of the < changes. < < This paragraph contains < text that is outdated. < It will be deleted in the < near future. --- > compress anything. 17c17 < check this dokument. On --- > check this document. On 24a25,28 > > This paragraph contains > important new additions > to this document. 

In this traditional output format, a stands for added, d for deleted and c for changed. Line numbers of the original file appear before a/d/c and those of the modified file appear after. Angle brackets appear at the beginning of lines that are added, deleted or changed. Addition lines are added to the original file to appear in the new file. Deletion lines are deleted from the original file to be missing in the new file. See parenthesis for an account of the rhetorical concept from which the name of the punctuation mark is derived. ...


By default, lines common to both files are not shown. Lines that have moved will show up as added on their new location and as deleted on their old location.[3]


Variations

Most diff implementations remain outwardly unchanged since 1975. The modifications include improvements to the core algorithm, the addition of useful features to the command, and the design of new output formats. The basic algorithm is described in the papers An O(ND) Difference Algorithm and its Variations by Eugene W. Myers[4] and in A File Comparison Program by Webb Miller and Myers.[5] The algorithm was independently discovered and described in Algorithms for Approximate String Matching, by E. Ukkonen.[6] The first editions of the diff program were designed for line comparisons of text files expecting the newline character to delimit lines. By the 1980s, support for binary files resulted in a shift in the application's design and implementation. In computing, a newline is a special character or sequence of characters signifying the end of a line of text. ...


Edit script

An edit script can still be generated by modern versions of diff with the -e option. The resulting edit script for this example is as follows:

 24a This paragraph contains important new additions to this document. . 17c check this document. On . 8,14c compress anything. . 0a This is an important notice! It should therefore be located at the beginning of this document! . 

Context format

The Berkeley distribution of Unix made a point of adding the context format (-C) and the ability to recurse on filesystem directory structures (-r), adding those features in 2.8 BSD, released in July 1981. The context format of diff introduced at Berkeley helped with distributing patches for source code that may have been changed minimally. BSD redirects here; for other uses see BSD (disambiguation). ...


In the context format, any changed lines are shown alongside unchanged lines before and after. The inclusion of any number of unchanged lines provides a context to the patch. The context consists of lines that have not changed between the two files, and so can be used as a reference to locate the chunk's place in a modified file and find the intended location a change should be applied regardless if the line numbers no longer correspond. The context format introduces greater readability for humans and reliability when applying the patch and an output which is accepted as input to the patch program. This intelligent behavior isn't possible with the traditional diff output. patch is a Unix program that updates text files according to instructions contained in a separate file, called a patch file. ...


The number of unchanged lines shown above and below a change hunk can be defined by the user, even zero, but three lines is typically the default. If the context of unchanged lines in a hunk overlap with an adjacent hunk, then diff will avoid duplicating the unchanged lines and merge the hunks into a single hunk.


A "!" represents a change between lines that correspond in the two files. A "+" represents the addition of a line, while a blank space represents an unchanged line. At the beginning of the patch is the file information, including the full path and a time stamp. At the beginning of each hunk are the line numbers that apply for the corresponding change in the files. A number range appearing between sets of three asterisks applies to the original file, while sets of three dashes apply to the new file. The chunk ranges specify the starting line number and the number of lines the change hunk applies to in the respective file. A space is a punctuation convention for providing interword separation in some scripts, including the Latin, Greek, Cyrillic, and Arabic. ... Timecode is also the title of a 2000 film directed by Mike Figgis which was shot in one continuous take. ...


The command diff -c original new produces the following output:

 *** /path/to/original timestamp --- /path/to/new timestamp *************** *** 1,3 **** --- 1,9 ---- + This is an important + notice! It should + therefore be located at + the beginning of this + document! + This part of the document has stayed the same from version to *************** *** 5,20 **** be shown if it doesn't change. Otherwise, that would not be helping to ! compress the size of the ! changes. ! ! This paragraph contains ! text that is outdated. ! It will be deleted in the ! near future. It is important to spell ! check this document. On the other hand, a misspelled word isn't the end of the world. --- 11,20 ---- be shown if it doesn't change. Otherwise, that would not be helping to ! compress anything. It is important to spell ! check this document. On the other hand, a misspelled word isn't the end of the world. *************** *** 22,24 **** --- 22,28 ---- this paragraph needs to be changed. Things can be added after it. + + This paragraph contains + important new additions + to this document. 

Unified format

The unified format (or unidiff) inherits the technical improvements made by the context format, but produces a smaller diff with old and new text presented immediately adjacent. Unified format is usually invoked using the "-u" command line option. This output is often used as input to the patch program. Many projects specifically request that "diffs" be submitted in the unified format, making unified diff format the most common format for exchange between software developers. In computer software, specifically command line interfaces, a switch (also known as option, command-line parameter, or command-line argument) is an indication by a user that a computer program should change its default behaviour. ... patch is a Unix program that updates text files according to instructions contained in a separate file, called a patch file. ...


Unified context diffs were originally developed by Wayne Davison in August 1990 (in unidiff which appeared in Volume 14 of comp.sources.misc). Richard Stallman added unified diff support to the GNU Project's diff utility one month later, and the feature debuted in GNU diff 1.15, released in January 1991. GNU diff has since generalized the context format to allow arbitrary formatting of diffs. Wayne Davison is a noted programmer and musician, born on 14 December in the US state of California. ... Richard Matthew Stallman (born March 16, 1953), often abbreviated rms,[2] is an American software freedom activist, hacker,[3] and software developer. ... GNU (pronounced ) is a computer operating system composed entirely of free software. ...


The format starts with the same two-line header as the context format, except that the original file is preceded by "---" and the new file is preceded by "+++". Following this are one or more change hunks (chunks) that contain the line differences in the file. The unchanged, contextual lines are preceded by a space character, addition lines are preceded by a plus sign, and deletion lines are preceded by a minus sign. Look up header in Wiktionary, the free dictionary. ... The plus (+) and minus (−) signs are used universally to represent the operations of addition and subtraction, and have been extended to many other meanings, more or less analogous. ... The plus (+) and minus (−) signs are used universally to represent the operations of addition and subtraction, and have been extended to many other meanings, more or less analogous. ...


A chunk begins with range information and is immediately followed with the line additions, line deletions, and any number of the contextual lines. The range information is surrounded by double-at signs and combines onto a single line what appears on two lines for the context format (see above). The format of the range information line is as follows: @ redirects here. ...

 @@ -R +R @@ 

The chunk range information contains two chunk ranges. The one preceded by a minus symbol is the range for the chunk of the original file, and the range for the new file is preceded by a plus symbol. Each chunk range, R, is of the format l,s where l is the starting line number and s is the number of lines the change hunk applies to for each respective file. In many versions of GNU diff, R can omit the comma and trailing value s, in which case s defaults to 1. Note that the only really interesting value is the l line number of the first range; all the other values can be computed from the diff.


The chunk range for the original should be the sum of all contextual and deletion (including changed) chunk lines. The chunk range for the new file should be a sum of all contextual and addition (including changed) chunk lines. If chunk size information does not correspond with the number of lines in the hunk, then the diff could be considered invalid and be rejected.


If a line is modified, it is represented as a deletion and addition. Since the hunks of the original and new file appear in the same hunk, such changes would appear adjacent to one another.[7] An occurrence of this in the example below is:

 -check this dokument. On +check this document. On 

The command diff -u original new produces the following output:

 --- original timestamp +++ new timestamp @@ -1,3 +1,9 @@ +This is an important +notice! It should +therefore be located at +the beginning of this +document! + This part of the document has stayed the same from version to @@ -5,16 +11,10 @@ be shown if it doesn't change. Otherwise, that would not be helping to -compress the size of the -changes. - -This paragraph contains -text that is outdated. -It will be deleted in the -near future. +compress anything. It is important to spell -check this dokument. On +check this document. On the other hand, a misspelled word isn't the end of the world. @@ -22,3 +22,7 @@ this paragraph needs to be changed. Things can be added after it. + +This paragraph contains +important new additions +to this document. 

There are some modifications and extensions to the diff formats that are used and understood by certain programs and in certain contexts. For example, some revision control systems (such as Subversion) specify a revision/version number, "working copy", or any other comment instead of a timestamp in the diff's header section. Some tools allow diffs for several different files to be merged into one, using a header for each modified file that may look something like this: In computing, Subversion (SVN) is a version control system (VCS) initiated in 2000 by CollabNet Inc. ...

 Index: path/to/file.cpp =================================================================== 

As a special case, unified diff expects to work with files that end in a newline. If either file does not, unified diff will emit the special line

  No newline at end of file 

after the modifications. The patch program should be aware of this. patch is a Unix program that updates text files according to instructions contained in a separate file, called a patch file. ...


Others

Postprocessors sdiff and diffmk render side-by-side diff listings and applied change marks to printed documents, respectively. Both were developed elsewhere in Bell Labs in or before 1981.


Diff3 compares one file against two other files. It was originally developed by Paul Jensen to reconcile changes made by two persons editing a common source. It is seldom invoked directly and is largely subsumed by the merge program. However, it is used internally by many revision control systems. diff3 is a Unix utility to compare three files and show any differences among them. ... Revision control (also known as version control (system) (VCS), source control or (source) code management (SCM)) is the management of multiple revisions of the same unit of information. ...


GNU diff and diff3 are included in the diffutils package with other diff and patch related utilities. Emacs has Ediff for showing the changes a patch would provide in a user interface that combines interactive editing and merging capabilities for patch files. patch is a Unix program that updates text files according to instructions contained in a separate file, called a patch file. ... This article is about the text editor. ... Ediff is a tool available in Emacs for interactively creating and applying diff files without ever having to see their contents. ...


Wdiff makes it easy to see the words or phrases that changed in a text document, especially in the presence of word-wrapping or different column widths. Spiff goes yet further, ignoring floating point differences under a tunable precision and ignoring irrelevancies in program files such as whitespace and comment formatting. Daisy Diff diffs HTML documents and reconstructs the layout and style information.


See also

// Basic general information about file comparison software. ... The comm command in Unix is a utility that is used to compare two files. ... cmp is a command line utility for computer systems that use a Unix operating system. ... Delta encoding is a way of storing or transmitting data in form of differences between sequential data rather than complete files. ... This article or section does not cite its references or sources. ... Kompare is a free graphical computer application which helps the user to compare two different text files or two directories. ... In information theory and computer science, the Levenshtein distance is a string metric which is one way to measure edit distance. ... The longest common subsequence problem (LCS) is finding a longest sequence which is a subsequence of all sequences in a set of sequences (often just two). ... In MS-DOS 3. ... The Revision Control System (RCS) is a software implementation of revision control that automates the storing, retrieval, logging, identification, and merging of revisions. ... In computing, rsync is a computer program for Unix systems which synchronizes files and directories from one location to another while minimizing data transfer using delta encoding when appropriate. ... Software Configuration Management (SCM) is part of configuration management (CM). ... tkdiff is a graphical diff viewer based on the tk framework. ... This is a list of Unix programs. ... diff3 is a Unix utility to compare three files and show any differences among them. ...

References

  1. ^ MacKenzie et al. "Binary Files and Forcing Text Comparison" in Comparing and Merging Files with GNU Diff and Patch. Downloaded 28 April 2007. [1]
  2. ^ James W. Hunt and M. Douglas McIlroy (June 1976). "An Algorithm for Differential File Comparison". Computing Science Technical Report, Bell Laboratories 41. 
  3. ^ David MacKenzie, Paul Eggert, and Richard Stallman (1997). Comparing and Merging Files with GNU Diff and Patch. ISBN 0-9541617-5-0. 
  4. ^ E. Myers (1986). "An O(ND) Difference Algorithm and Its Variations". Algorithmica 1 (2): 251–266. 
  5. ^ Webb Miller and Eugene W. Myers (1985). "A File Comparison Program". Software — Practice and Experience 15 (11): 1025–1040. 
  6. ^ E. Ukkonen (1985). "Algorithms for Approximate String Matching". Information and Control 64: 100–118. doi:10.1016/S0019-9958(85)80046-2. 
  7. ^ Unified Diff Format by Guido van Rossum, June 14, 2006
  • Paul Heckel (April 1978). "A technique for isolating differences between files". Communications of the ACM 21 (4): 264–268. [2]
  • A generic implementation of the Myers SES/LCS algorithm with the Hirschberg linear space refinement (C source code)

is the 118th day of the year (119th in leap years) in the Gregorian calendar. ... Year 2007 (MMVII) was a common year starting on Monday of the Gregorian calendar in the 21st century. ... A digital object identifier (or DOI) is a standard for persistently identifying a piece of intellectual property on a digital network and associating it with related data, the metadata, in a structured extensible way. ... Guido van Rossum Guido van Rossum is a Dutch computer programmer who is best known as the author of the Python programming language. ... is the 165th day of the year (166th in leap years) in the Gregorian calendar. ... Year 2006 (MMVI) was a common year starting on Sunday of the Gregorian calendar. ...

External links

The Free Software Foundation (FSF) is a non-profit corporation founded in October 1985 by Richard Stallman to support the free software movement (free as in freedom), and in particular the GNU project. ... The GnuWin32 project provides various GNU tools and software for the Win32 platform. ... Programming Republic of Perl logo Perl, also Practical Extraction and Report Language (a backronym, see below), is an interpreted procedural programming language designed by Larry Wall. ... Java language redirects here. ... The title given to this article is incorrect due to technical limitations. ... Filiation of Unix and Unix-like systems Unix (officially trademarked as UNIX®, sometimes also written as or ® with small caps) is a computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs including Ken Thompson, Dennis Ritchie and Douglas McIlroy. ... A command line interface or CLI is a method of interacting with a computer by giving it lines of textual commands (that is, a sequence of characters) either from keyboard input or from a script. ... This is a list of UNIX utilities as specified by IEEE Std 1003. ... The title given to this article is incorrect due to technical limitations. ... chattr is a UNIX program that allows a user to set certain attributes to a file. ... This article does not cite any references or sources. ... The chmod command (abbreviated from change mode) is a shell command in Unix and Unix-like environments. ... chown is a Unix command used to change the recorded owner of a computer file. ... The chgrp command is used by unprivileged users on Unix-like systems to change the group associated with a file. ... Cksum is a POSIX command that reads the files specified by the File parameter and calculates a checksum, cyclic redundancy check (CRC) and the byte count for a file or files. ... cmp is a command line utility for computer systems that use a Unix operating system. ... The introduction to this article provides insufficient context for those unfamiliar with the subject matter. ... du (abbreviated from disk usage) is a standard Unix program used to estimate the file space usage; space used under a particular directory or files on a file system. ... df (abbreviated from disk free) is a standard Unix computer program used to display the amount of available disk space for filesystems on which the invoking user has appropriate read access, df is usually implemented by reading the mtab file or using statfs. ... file is a program originated in Unix that runs under the shell (command-line) to determine the file type heuristically instead of other simpler ways to classify it, like with file extensions, MIMEs, etc. ... The system utility fsck (for file system check or file system consistency check) is a tool for checking the consistency of a file system in the Unix system and clones thereof. ... fuser is a UNIX command showing which processes are using a specified file. ... The ln command is used on Unix-like systems to create links between files. ... For other uses, see LS. ls is a command specified by POSIX and the Single UNIX Specification, and is thus implemented in Unix and Unix-like operating systems. ... lsof is a command found in almost any Unix system that reports open files by processes of a Operating System. ... The mkdir command in the Unix operating system is used to make a new directory. ... ... The correct title of this article is . ... The title given to this article is incorrect due to technical limitations. ... The title given to this article is incorrect due to technical limitations. ... This article does not cite any references or sources. ... split is a Unix utility most commonly used to split a file into one or more other files. ... touch is a standard Unix program used to change a files access and modification timestamps. ... The at command is used to schedule commands to be executed once at a particular time in the future. ... A chroot on Unix operating systems is an operation which changes the root directory. ... In computing, cron is a time-based scheduling service in Unix-like computer operating systems. ... Exit is a command used in many operating systems command line shells. ... Wikibooks has more about this subject: kill In Unix and Unix-like operating systems, kill is a command used to send simple messages to processes running on the system. ... killall is a command line utility initially written for use with the GNU/Linux operating systems. ... nice (IPA pronunciation: ) is a command found on UNIX and other POSIX-like operating systems such as Linux. ... pgrep is a command line utility initially written for use with the Solaris 7 operating systems and then ported to GNU/Linux. ... pidof is a Linux utility that returns the process ID (PID) of a running process. ... The introduction to this article provides insufficient context for those unfamiliar with the subject matter. ... To meet Wikipedias quality standards, this article or section may require cleanup. ... pstree is a Unix command that shows the running processes as a tree. ... sleep is an instruction for a computer that delays execution for a specified period of time. ... This article is about a Unix command. ... In most Unix-like operating systems, the top command produces a frequently-updated list of processes. ... The correct title of this article is . ... In Unix, watch runs the specified command repeatedly and displays the output on stdout so you can watch it change over time. ... env is a shell utility for Unix-like operating systems (including Linux). ... In computer networking, the Name/Finger protocol and the Finger user information protocol are simple network protocols for the exchange of human-oriented status and user information. ... In computer software, id is a program in Unix operating systems that prints the uid of the account of which the program is executed by. ... mesg is a Unix command that sets or reports the permission other users have to write to your terminal using the talk and write commands. ... passwd is a tool on most Unix and Linux systems used to change a users password. ... The Unix su (substitute user or switch user or super user) command is used to assume the login shell of another user without logging out. ... This article is about the Unix command line program. ... In computer software, uname is a program in Unix operating systems that prints the name, version and other details about the running operating system. ... Uptime is a measure of the time a computer system has been up and running. ... The command w on many Unix-like operating systems provides a quick summary of every user logged into a computer, what that user is currently doing, and what load all the activity is imposing on the computer itself. ... wall is a Unix command line utility. ... who is a Unix-command which creates almost the same output as the Unix-command w; it shows you users currently logged in a system. ... write can refer to several Unix commands. ... This article is about the programming language. ... The comm command in Unix is a utility that is used to compare two files. ... cut is a Unix command which is typically used to extract a certain range of characters from a line, usually from a file. ... ed was the original standard text editor on the Unix operating system. ... ex, short for EXtended, is a line editor for Unix systems. ... Usage: fmt [-DIGITS] [OPTION]... [FILE]... Reformat each paragraph in the FILE(s), writing to standard output. ... head is a program that shows the first 10 lines by default of a file or piped data, on Unix and Unix-like systems. ... iconv is a computer program and a standardized API used to convert between different character encodings. ... join is a command in Unix-like operating systems. ... less is a program on Unix and Unix-like systems used to view (but not change) the contents of a text file one screen at a time. ... Paste is a Unix utility tool which is used to join files horizontally (parallel merging), e. ... The correct title of this article is . ... sort is a standard Unix command line program that prints the lines of its input in sorted order. ... Usage: tac [OPTION]... [FILE]... Write each FILE to standard output, last line first. ... tail is a program on Unix and Unix-like systems used to display the last few lines of a text file or piped data. ... tr (abbreviated from translate or transliterate) is a command in Unix-like operating systems. ... uniq is a Unix utility which, when fed a text file, outputs the file with adjacent identical lines collapsed to one. ... wc (short for word count) is a command in Unix-like operating systems. ... xargs is a command of the Unix and most Unix-like operating system which eases passing command output to another command as command line arguments. ... In computing, a shell is a piece of software that provides an interface for users (command line interpreter). ... basename is a common program found on Unix systems; typically it is the GNU Projects coreutils version, which is Free software. ... expr is a command line Unix utility which evaluates an expression and outputs the corresponding value. ... In Unix-like operating systems, false is the command that always returns the value 1, which is regarded by the shell as the logical value false. ... Several programming languages implement a printf function, to output a formatted string. ... test is a Unix command that evaluates conditional expressions. ... In Unix-like operating systems, true is a command whose only function is to always return the value 0, which is regarded by the shell as the logical value true. ... unset is a Unix shell command. ... inetd is a daemon on many Unix systems that manages Internet services. ... This article or section includes a list of works cited or a list of external links, but its sources remain unclear because it lacks in-text citations. ... For other uses, see Ping (disambiguation). ... In computing, rlogin is a Unix software utility that allows users to log in on another host via a network, communicating via TCP port 513. ... In computing, netcat is a network utility for reading from and writing to network connections on either TCP or UDP. It is designed in a thin and simple way, which makes it easy to incorporate in larger applications. ... traceroute outputs the list of traversed routers in simple text format, together with timing information traceroute is a computer network tool used to determine the route taken by packets across an IP network. ... For other uses, see Find (disambiguation). ... grep is a command line utility that was originally written for use with the Unix operating system. ... In computer software, strings is a program in Unix-like operating systems that prints the strings found in an executable. ... The banner program displays a large ASCII art version of input text. ... bc is an arbitrary precision calculator language with syntax similar to the C programming language. ... cal is a standard program on Unix that prints an ASCII calendar of the given month or year. ... Clear being used on GNU/LInux under uxterm This article or section does not adequately cite its references or sources. ... The title given to this article is incorrect due to technical limitations. ... dd is a common UNIX program whose primary purpose is the low-level copying and conversion of raw data. ... The Common Unix Printing System (CUPS) is a modularised computer printing system for Unix-like operating systems that allows computers to act as powerful print servers. ... The man page on man Almost all substantial UNIX and Unix-like operating systems have extensive documentation known as man pages (short for manual pages). The Unix command used to display them is man. ... size is a command line utility originally written for use with the Unix-like operating systems. ... yes is a Unix command, which outputs an affirmative response, or a user-defined string of text continuously until killed. ...

  Results from FactBites:
 
Help:Diff - Meta (1575 words)
For special cases (the diff for a single edit or between an old and the current version) other possibilities are clicking cur or last in the page history or on the Recent Changes page.
The diff is also shown during an edit conflict so you can see exactly what you need to reintegrate.
From the diff and/or the "2/3" version one can conclude in which of the three parts the change was made (if there is A at 2/3, the change was made later; if there is B at 1/3 the change was made before; if the diff shows the change it was made between 1/3 and 2/3).
diff Command (1284 words)
When the diff command is run on regular files, and when comparing text files that differ during directory comparison, the diff command tells what lines must be changed in the files to make them agree.
Following each of these lines, the diff command displays all lines affected in the first file preceded by a <: (less than sign, colon), then displays all lines affected in the second file are preceded by a > (greater than sign).
Causes any amount of white space at the end of a line to be treated as a single newline character (the white-space characters preceding the newline character are ignored) and other strings of white-space characters, not including newline characters, to compare equally.
  More results at FactBites »


 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments
Please enter the 5-letter protection code

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.