compare two files using filename

I want to compare two file using filename.

suppose two files are same directory.

what is the command for this.

thanks in advance...

diff file1 file2

You could have easily found this info by searching this forum or using google:

"unix compare files"

or 'man -k compare'