Monday, 4 July 2016

[Ubuntu] How to change hostname

hostnamectl [OPTIONS...] COMMAND ...


Query or change system hostname.

  -h --help              Show this help
     --version           Show package version
     --transient         Only set transient hostname
     --static            Only set static hostname
     --pretty            Only set pretty hostname
     --no-ask-password   Do not prompt for password
  -H --host=[USER@]HOST  Operate on remote host

Commands:
  status                 Show current hostname settings
  set-hostname NAME      Set system hostname
  set-icon-name NAME     Set icon name for host
  set-chassis NAME       Set chassis type for host

#> hostnamectl set-hostname [HOSTNAME]

No comments:

Post a Comment