More details - http://blog.gbaman.info/?p=791
For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt file dtoverlay=dwc2 on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh in the SD card as well. By default SSH is now disabled so this is required to enable it. Remember - Make sure your file doesn't have an extension (like .txt etc)!
4. Finally, open up the cmdline.txt. Be careful with this file, it is very picky with its formatting! Each parameter is seperated by a single space (it does not use newlines). Insert modules-load=dwc2,g_ether after rootwait. To compare, an edited version of the cmdline.txt file at the time of writing, can be found here.
5. That's it, eject the SD card from your computer, put it in your Raspberry Pi Zero and connect it via USB to your computer. It will take up to 90s to boot up (shorter on subsequent boots). It should then appear as a USB Ethernet device. You can SSH into it using raspberrypi.local as the address.

Hello everyone,
Somehow my Rasperry Pi Zero is messed up with my Fedora 34 running on my Dell Latitude laptop.
The error is like this
You guy could try to reset the USB port and it worked again!!!
sudo ./usbreset /dev/bus/usb/001/044usbreset program can be found at here
==================================================
Since above method uses "Link-Local Only" and I couldn't get Internet access from my
Pi Zero v1.3 (2005), no Wi-Firunning onDebian 10 (Buster).I found another method to use IPv4 only and finally got Internet access from Pi Zero!!!
Firstly, just add the following line after
rootwaitin/boot/cmdline.txtmodules-load=dwc2,g_ether ipv6.disable=1Of course, the
/boot/config.txtfile should be updated as the first post.Secondly, use option "Shared to other computers" in IPv4 tab of USB Ethernet setting. To get the IP address of Pi Zero, just use this command
arp -aThe result may be this
Thirdly, on Linux machine, please use this command to enable Pi Zero Internet access
echo 1 > /proc/sys/net/ipv4/ip_forwardFinally, you can SSH to Pi Zero by using direct address
ssh pi@[PI_ZERO_IP]Happy hacking!!!
Note: Actually, I'm not sure this whether
arpcommand affects byavahi-toolsor not, you guy could try to use "Link-Local Only" option first and then "Shared to other computers" option later!!!References:
My retropie's information