Results 1 to 3 of 3

Thread: how change terminal initially dispaly name in ubuntu?

  1. #1
    Join Date
    Jun 2011
    Beans
    7

    how change terminal initially dispaly name in ubuntu?

    My ubuntu terminal show as

    mmh@mmh2-PC04:~$

    i want to change it as

    user@mmh2-PC04:~$

    please help me?

  2. #2
    Join Date
    May 2009
    Location
    Fareham, UK
    Beans
    Hidden!
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: how change terminal initially dispaly name in ubuntu?

    Do you mean the literal term user or do you mean your user name?

    The way to do it is to open the file /home/[your user]/.bashrc and add the line:
    export PS1="insert bash prompt here"

    just make up your bash prompt for your user, there are certain keywords you can use, this site will generate bash prompt lines for you

    or you can add the line to the file /etc/bash.bashrc to make the prompt system wide for all users
    Catch me on Freenode - imark

  3. #3
    Join Date
    Nov 2012
    Beans
    13

    Re: how change terminal initially dispaly name in ubuntu?

    I think the first portion is the user @ <machine_name> . If you create a different user account you'll see that user @mmh2-PC04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •