---
obj: application
---

# hostnamectl
Query or change system hostname.

Usage: `hostnamectl [OPTIONS...] COMMAND ...`

Commands:
```
  status                 Show current hostname settings
  hostname [NAME]        Get/set system hostname
  icon-name [NAME]       Get/set icon name for host
  chassis [NAME]         Get/set chassis type for host
  deployment [NAME]      Get/set deployment environment for host
  location [NAME]        Get/set location for host
```
