Compare Files in Linux | How to Use the diff Command

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ส.ค. 2024

ความคิดเห็น • 14

  • @LinXnerd
    @LinXnerd ปีที่แล้ว

    That beard and mustache is a good fit for you. 👍 And thanks for bringing the 'diff' command up. I forgot about it. Now I don't have to download a UI version to check file differences. Isn't it grand that Linux keeps everything in a file!? 😎

  • @user-dv4rq3qk3d
    @user-dv4rq3qk3d หลายเดือนก่อน

    Good video 👍

  • @theeightbithero
    @theeightbithero ปีที่แล้ว

    oh my gosh! someone who actually speaks English!

  • @GergelyCsermely
    @GergelyCsermely ปีที่แล้ว +1

    Thanks

  • @LinXnerd
    @LinXnerd ปีที่แล้ว

    Oooo...I found diff3, which can compare 3 files at once. 🤓

  • @send2gl
    @send2gl ปีที่แล้ว

    Useful, not one I've used before. But have heard of it.

  • @LinXnerd
    @LinXnerd ปีที่แล้ว

    Do diff3 next...
    diff3! diff3! diff3! ✊

  • @omeninomaluquinhodognulinu9937
    @omeninomaluquinhodognulinu9937 ปีที่แล้ว

    I liked 👍

  • @baruchben-david4196
    @baruchben-david4196 ปีที่แล้ว

    I've always wondered how to use that...

  • @baruchben-david4196
    @baruchben-david4196 ปีที่แล้ว

    Just wondering... I checked the man pages, and find that diff --color will also yield a colored output. Is there any advantage to using colordiff?

    • @LinXnerd
      @LinXnerd ปีที่แล้ว

      I think that colordiff might be a little more "personalized". We'll have to test them to see the differences. I see that there is quite a bit of perl code in that colordiff file...

    • @AkamaiDeveloper
      @AkamaiDeveloper  ปีที่แล้ว

      Based on this StackExchange post, --color and colordiff affected files for certain users differently. Not sure if this is still the case but at some point there was a difference.
      unix.stackexchange.com/questions/196565/how-to-color-diff-output

  • @norseironworks
    @norseironworks ปีที่แล้ว

    20 yrs ago I remember that I had two very large .doc files that should be the same. I used some commnd to merge the two files to a new .doc. file. I can´t remember how I did it. Maybe topic for next video?

    • @AkamaiDeveloper
      @AkamaiDeveloper  ปีที่แล้ว

      You can use the cat command to merge files. Jay's got a video that covers it on his other channel here:
      th-cam.com/video/z3nJlyrJYW4/w-d-xo.html