Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions
User Name
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.


  Search this Thread
Old 12-03-2003, 10:31 AM   #1
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 30
How do I change the bash prompt in SuSE 8.2

Hi all,

When I log in (init3) I get the prompt
if I cd somewhere, th prompt does not change ie:
linux:~ # cd /usr/
linux:/usr #
how do I make it do this? Thank You
Old 12-03-2003, 10:55 AM   #2
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30

Put the following into ~/.bashrc

export PS1 = 'linux:\w # '

The \w is the working directory. There's other stuff you can put in too, \h is the host, \u is the user and so on. Not sure where the full list is, probably under "man bash".

Old 12-03-2003, 10:56 AM   #3
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Original Poster
Rep: Reputation: 30
thank you
Old 12-08-2003, 09:01 AM   #4
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64-KDE, Ubuntu 14.04, Mint 17.2
Posts: 3,818

Rep: Reputation: Disabled

I also recommend the search function of this site :




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
bash prompt subG Slackware 6 01-18-2006 05:43 PM
help! bash command prompt font/color change richiangpan9 Linux - Newbie 3 04-24-2005 12:34 PM
make bash interactive and change prompt DropSig Linux - Newbie 3 05-17-2004 09:16 AM
help with bash prompt everythingand2 Linux - Newbie 7 12-06-2003 05:28 PM
Bash Prompt mandraketux Mandriva 2 11-28-2003 11:05 PM

All times are GMT -5. The time now is 12:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration