To attach the cabinets to each other, use a No. 8 2¼-inch-long trim-head screw with a fine thread suited for hardwood. This fastener's small-diameter head is unobtrusive, so you don't have to hide it under a cap or wood plug.
To attach the cabinets to each other use a 2.25 inch No. 8 trim-head screw.