hostnamectl set-hostname fedorasystem --pretty Set pretty hostname.
hostnamectl set-hostname fedorasystem.example.org --static Set static hostname.
hostnamectl set-hostname fedora-dhcp-client.example.org --transient Set transient hostname.
hostnamectl set-hostname fedorasystem.example.org Without arguments, hostnamectl will apply to all hostname types.
hostnamectl status Show current hostname settings