hostname
Displays the host name portion of the full computer name of the computer. Windows commands reference
On Windows, Linux 4 Sigma rules name it File hostname.exe
Windows
Displays the host name portion of the full computer name of the computer. IMPORTANT: This command is available only if the Internet Protocol (TCP/IP) protocol is installed as a component in the properties of a network adapter in Network.
hostnamehostnameecho %COMPUTERNAME%set "_CLUSTER_NETWORK_NAME_=Altered Computer Name"hostname
/?Displays help at the command prompt.Linux
Get/set the current hostname.
hostname [-bdsf] [-F FILENAME] [newname]
-bSet hostname to 'localhost' if otherwise unset-dShow DNS domain name (no host)-fShow fully-qualified name (host+domain, FQDN)-F FILENAMESet hostname to contents of FILENAME-sShow short host name (no domain)Several platforms
Show or set the system's host name.
Show current host name
hostnameIdentifyTrips 1 Sigma rule: informationalSystem Information Discovery by Ömer Günal, oscd.community
Show the network address of the host name
hostname --ip-addressIdentifyTrips 1 Sigma rule: informationalSystem Information Discovery by Ömer Günal, oscd.community
Show the FQDN (Fully Qualified Domain Name)
hostname --fqdnIdentifyTrips 1 Sigma rule: informationalSystem Information Discovery by Ömer Günal, oscd.community
Set current host name
hostname new_hostnameIdentifyTrips 1 Sigma rule: informationalSystem Information Discovery by Ömer Günal, oscd.community