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