Find the answer to your Linux question:
Results 1 to 4 of 4
When I was setting up SuSE 10.1 I left the default: linux-laug now when I open Konsel it displays as such user@ linux-laug :~> how would I go about changing ...
  1. #1
    Just Joined! jjsmith's Avatar
    Join Date
    Nov 2006
    Location
    Wyoming
    Posts
    22

    change prompt

    When I was setting up SuSE 10.1 I left the default: linux-laug

    now when I open Konsel it displays as such

    user@linux-laug:~>

    how would I go about changing the linux-laug?

  2. #2
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    You need to change the host name, I think there's a setting in YaST that may help.

    At least on Gentoo the file to edit is /etc/conf.d/hostname but it may be /etc/rc.conf in SuSE.
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  3. #3
    Just Joined! jjsmith's Avatar
    Join Date
    Nov 2006
    Location
    Wyoming
    Posts
    22
    I used konsole and typed in hostname new-hostname and that seem to do the trick until I rebooted my system.

  4. #4
    Linux User
    Join Date
    Aug 2005
    Posts
    408
    You can also change the prompt by declaring the bash prompt variable $PS1.

    So, for instance, if you type in
    PS1="HEY LOOK AT ME \w\d $ "

    Then, your bash prompt will be the totally obnoxious:
    Code:
    HEY LOOK AT ME (Current working directory)(date) $
    If you wanted that totally obnoxious prompt to be permanent, you can add it to .bashrc.

    http://tldp.org/HOWTO/Bash-Prompt-HO...sequences.html

Posting Permissions

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