Changing the long name on Terminal

Discussion in 'Linux Virtual Machine' started by JayLefler, Nov 9, 2012.

  1. JayLefler

    JayLefler Bit poster

    Messages:
    4
    Hi,

    When I open the terminal I get the following long name:

    user@parallels-Parallels-Virtual-Platform:

    Is there a way I can change the part after the use name to something much shorter? like maybe just "parallels" by itself.

    Thanks,
    Jay
     
  2. JEarles

    JEarles Hunter

    Messages:
    119
    Which distro did you install? If you installed Ubuntu you should be able to change it by updating two files. Follow these steps:

    1) Open a terminal (control-option T)
    2) sudo gedit /etc/hostname (change hostname to parallels, and save)
    3) sudo gedit /etc/hosts (change hostname associated with 127.0.1.1 to parallels, and save)
    4) sudo reboot now (restart your system)
     
  3. JayLefler

    JayLefler Bit poster

    Messages:
    4
    Thank you sir, that greatly expands my terminal real estate :)
     

Share This Page