'How to find differences over one file to another in Linux

File1.txt

Mango
Oranges

File2.txt

Mango
Apple

I want to find differences over one file to the another. I am expecting the output as

oranges

I want to compare file1 different from file2. What exists in file1 but not in file2. I have used diff file1.txt file2.txt it’s giving me all different values between both files



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source