3D printer: How to home only X axis using G-Code?

To home only the X axis on 3D printers running on most firmwares, useĀ G28 with the X axis specifier

G28 X