What is diff command used for in Linux?
Experience Level: Junior
Tags: Linux
Answer
The diff is a command-line utility that allows you to compare two files line by line. It can also compare the contents of directories. The diff command is most commonly used to create a patch containing the differences between one or more files that can be applied using the patch command.
Related Linux job interview questions
What is chmod command used for in Linux?
Linux JuniorWhat is tar command used for in Linux?
Linux JuniorWhat is tail command used for in Linux?
Linux JuniorWhat is head command used for in Linux?
Linux JuniorWhat is du command used for in Linux?
Linux Junior