What does esptool.py -p /dev/ttyUSB0 write_flash 0x10000 image.bin do, and why is the address 0x10000?
It writes a prebuilt application image into the ESP32's flash over the USB serial port, starting at offset 0x10000. That is where the default ESP-IDF partition table places the first app partition.
* The default layout. Writing at 0x10000 replaces only the application. *
ESP32 flash is split into regions: the second-stage bootloader near the start, the partition table at 0x8000, and then the partitions it lists. In the default single-app layout the factory app partition begins at 0x10000, so writing image.bin there replaces the application while leaving the bootloader and partition table untouched.
The important word is binary: image.bin is just the bytes that go into flash. It runs fine, but it carries no symbol names and no debug information, so you can flash and run a program you have no source for. Studying it is another matter (see the ELF card).
In esptool v5 and later the command is spelled esptool -p /dev/ttyUSB0 write-flash 0x10000 image.bin; the old esptool.py and write_flash spellings still work but are deprecated.
Go deeper:
ESP-IDF — Partition Tables — the default layout with the factory app at 0x10000.
esptool — Basic Commands —
write-flashand its options.