Results 1 to 4 of 4

Thread: Terminal Terminology and Setting

  1. #1
    Join Date
    Sep 2008
    Beans
    7

    Question Terminal Terminology and Setting

    Hello, Its been a while since I've been here, and seeing this is a really simple question, I am asking it here. Also the beginner community may also like to learn about this 'whats-it-called' that im trying to find a name for.

    K, so when I open up Terminal, it gives me a prompt. Cool. Now I use the Terminal a lot. When I say a lot, I mean A LOT. I've always found it annoying that when I start the terminal and after I enter a command, it will make a new line with:
    Code:
    james@james-Aspire-1810TZ:~$
    Currently, this is my user @ hostname:~$, Which makes my prompt look really cluttered.

    So..

    What is this called?
    Can I change it to something shorter like just my username? I would like to change it to something like this:
    Code:
    james:~$


    Thanks,
    James

  2. #2
    Join Date
    Apr 2007
    Location
    Coffee corner
    Beans
    405
    Distro
    Kubuntu 11.04 Natty Narwhal

    Re: Terminal Terminology and Setting

    try this link:
    http://www.cyberciti.biz/tips/howto-...up-prompt.html
    You can make your changes permanent by appending the following to ~/.bashrc:
    PS1=<whatever expression you figured out>
    export PS1

    PS1="\u:\w$ "
    should do the trick for you...
    Last edited by rosencrantz; May 25th, 2011 at 12:11 AM.

  3. #3
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Terminal Terminology and Setting

    It is called the "PS1" and you can customize in it in .bashrc

    http://www.cyberciti.biz/tips/howto-...up-prompt.html

    export PS1="\u:\w$"
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  4. #4
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Terminal Terminology and Setting

    Quote Originally Posted by rosencrantz View Post
    try this link:
    http://www.cyberciti.biz/tips/howto-...up-prompt.html
    You can make your changes permanent by appending the following to ~/.bashrc:
    PS1=<whatever expression you figured out>
    export PS1
    It simplifies your file, IMO, it you export and define yoru variable on one line.

    So rather then two lines

    Code:
    foo=bar
    export foo
    use one
    Code:
    export foo=bar
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

Tags for this Thread

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
  •