A hostname is a human-friendly name used to identify a device.
An example of a hostname could be the name test.
(switch#) Create a hostname:
hostname NAME
(switch#)
show hostname
(switch#)
hostname switch-test
show hostname
show commands is correct.