hostname Linux Command
Shows or sets the system's hostname.
What does hostname do?
Shows or sets the system's hostname.
Syntax
hostname [new-name]Practical example
sudo hostname kali-machineRelated Networking Commands
routeDisplays and modifies the IP routing table.
iwconfigDisplays and configures wireless network interface parameters.
arpDisplays and modifies the system's ARP cache (IP-to-MAC address mappings).
nmapNetwork exploration tool and port scanner (basic usage).
tracerouteTraces and displays the route packets take to reach a network host.
pingSends ICMP echo request packets to test network connectivity to a host.