Question:
changing linux path and comparing files?
Starlight*_*
2009-10-25 06:19:42 UTC
i am very very new to linux and i need some help if you dont mind :)
1. i have just typed in the command
export PATH=lemon
and i tried typing in a command after it. i dont know what happened and why did it happen?
2. i am trying to compare the contents of two text files, two in linux, two in windows. how would i do this in both OS's?
thanks
Three answers:
TBRMInsanity
2009-10-27 14:57:33 UTC
In Linux I would use the command sdiff.



sdiff file1 file2



This will compare the two files, side by side and show the differences.



In DOS (Windows), use the comp command.



comp file1 file2



This will only print out the differences between the two files (which is helpful but not as helpful as sdiff).



If you can mount your Windows partition you can use Linux to do the sdiff on both the Linux files and the Windows files.



export PATH is used to set the classpath in Linux so that when you enter in a command it will look in those classpaths to see if the program exists there. PATH=lemon will do nothing (as you observed).
2016-10-13 11:49:48 UTC
Linux isn't virus loose. There are Linux viruses out on the cyber web merely like there are dwelling house windows virus. you merely do no longer hear that a Linux device has have been given attacked or contaminated too many times. one element that makes Linux extra take care of than dwelling house windows is the basis account and customary risk-free practices updates which comprise utility updates for the courses which you have at the instant put in. dwelling house windows takes some month to launch risk-free practices updates.
yrjokin
2009-10-25 11:43:41 UTC
You compare text files using diff or diffident.py (diff's frontend is wdiff which I'm just downloading but I guess it depends on what you are comparing - I have only used it for code I have written - there's also fldiff and tkdiff. Check synaptic but diff is probably installed)

KDE 4 has a nice gui for doing it too, kompare



Here's a video showing diff or compare (that's what I searched for) in windows. There has to be something else but I'm talking to people in Linux right now.

http://powershell.com/cs/media/p/2988.aspx

There's a program called winmerge for windows which is a visual diff as described by this crazy guy:

http://www.youtube.com/watch?v=qi3XcEIDfiI (I recommend the use of fast forward )

http://www.microsoft.com/technet/scriptcenter/topics/msh/cmdlets/compare-object.mspx



If the windows version seems unnecessarily complicated its because the command is capable of comparing whole directories.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...