The Raspberry Pi is a popular single-board computer used in many DIY projects. While typically used with a monitor, keyboard, and mouse for on-site interaction, there are instances where you may need to access your Raspberry Pi from a PC or laptop using just a USB connection.
How to Connect a Raspberry Pi to a PC or Laptop Using USB
By using USB gadget mode, you can access and control your Raspberry Pi system from a PC connected via USB.