ubuntu login name code example Example: ubuntu chang host name Type the following commands: $ sudo hostname new-server-name-here