hostname [name]Arguments explained
- Options adjust output or behavior.
- Arguments name the files, services, hosts, or values the command should work with.
Common examples
hostnamePrints the current hostname.
hostname -IPrints IP addresses assigned to the host on many systems.
| Field | Details |
|---|---|
| Command | hostname |
| Category | Networking |
| Primary use | Shows or sets the system hostname. |
| Syntax | hostname [name] |