How To Compare Differences Between Files

RegisterLogin
How To Compare Differences Between Files
Post Description: you can use this command to compare to different linux files so you can find out the differences between both files
Tags: how, to, compare, differences, linux, files
This Post Was Posted On Apr 18, 2010 By Hostman #3381
you can use this command to compare to different linux files so you can find out the differences between both files

the command to use is

diff

example:

diff /etc/php.ini /mnt/usb/configs/php.ini
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
chico
#3921 1
which if the following commands can be used to compare two text files to find out how they are different?
a. comp
b. diff
c. compare
d. filediff
show answer
next >>

diff
diff - find differences between two files answer: b.
explanation: the diff command is used to display line by line differences between
pairs of text files.
reference: numenor.demon.co.uk/ccfaq/common.htm
incorrect answers:
a. there is no comp command.
xk0-002
c. there is no compare command, although 'compare' can be used as an option for the
'tar' utility.
d. there is no filediff command.
May 04, 2010 Reply Report abuse
©2012 Webune Forums - Wed Dec 12, 2012 10:38 pm
Powered by: Webune Forums V3