Suppose I have same version of linux kernel but I changed some driver lines. Is there any way to compare these kernels and list the results. The result would be helpful to go back if I changed a lot in original drivers.

1 Answer 1


The traditional method:

diff -r dir1  dir2 

That gives you a file-by-file difference, which can be kind of wordy. If you have Gnu diff, you can try:

diff -r --brief dir1 dir2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.