How to connect a computer and laptop together via ethernet cable?

Hokay, i have an ethernet cable and i was wondering how to connect a computer and a laptop together so that you can transfer data directly?
Thank you!
12 answers 12