diff command in Linux with Examples

diff command means Compare files line by line.

diff command in Linux with Examples

Syntax

diff [OPTION]… FILES

On the man page, the describes it

  • diff– compare files line by line.
  • man diff – More details information about diff command.

diff command in Linux with Examples

$ diff huuphan.txt devopsroles.txt

Conclusion

diff command is a simple command in Linux. It is the most popular in use terminal Linux compare files line by line. Thank you for reading the DevopsRoles page!

About HuuPV

My name is Huu. I love technology, especially Devops Skill such as Docker, vagrant, git, and so forth. I like open-sources, so I created DevopsRoles.com to share the knowledge I have acquired. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.