All apps/hostname

hostname

hostname

Print the name of the current host system, or set it.

Runs as hostname|macOS, Linux, Windows

Command form

ai-draft · 1 task · 3 fields

Print the host name, optionally trimmed or with domain information. Setting the name needs privileges and is left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui hostname
Show host nameExample values, fixed in this page — nothing here reaches a terminal
Basic
Include domain
-f
Trim domain
-s
Domain only
-d
TasksEach one presets the form for one job
Show host name
fullshortdomain_only
ParametersOnly these flags are editable in the form
Include domain
boolean
-f
Trim domain
boolean
-s
Domain only
boolean
-d
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed hostname against its version. A form that does not match your version is not offered.