Cant connect two computers

Can you connect two computers together? I know you can for monitors but I’m wondering if you can do the same with computers say you have files you want to transfer over or something like that.

A very easy way to connect two PCs is to use a USB-USB cable. By connecting two PCs with a cable like this, you can transfer files from one PC to another, and even build a small network and share your Internet connection with a second PC.

You can do some stuff to connect computers directly together but generally if they’re on the same network its easiest to just share stuff over the network - in Windows you can share folders to transfer files, or even share a printer if it’s not wireless and you want to use it with more than one computer.