GO KALI FREE
Networking Commands

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-machine

Related Networking Commands

route

Displays and modifies the IP routing table.

iwconfig

Displays and configures wireless network interface parameters.

arp

Displays and modifies the system's ARP cache (IP-to-MAC address mappings).

nmap

Network exploration tool and port scanner (basic usage).

traceroute

Traces and displays the route packets take to reach a network host.

ping

Sends ICMP echo request packets to test network connectivity to a host.