LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-08-2002, 02:43 AM   #1
Atroxic
Member
 
Registered: Jan 2002
Posts: 41

Rep: Reputation: 15
Prompt


My Prompt somehow changed to "bash-2.05$", I did once have it as "[Atroxic@blah folder]". How do I change it back?
 
Old 01-08-2002, 02:48 AM   #2
da Perp
Member
 
Registered: Oct 2001
Location: the Netherlands
Distribution: Bear Linux (LFS 3.3)
Posts: 171

Rep: Reputation: 30
edit your .bash_profile file with this line:
PS1="(/u@/W):"

the prompt will look more lik this then :
(user@workingdir):
 
Old 01-08-2002, 03:08 AM   #3
Atroxic
Member
 
Registered: Jan 2002
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks, but where do I find the file? What directory?
 
Old 01-08-2002, 08:03 AM   #4
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
it's in your home dir ie /home/<username>
it's a hidden file so you cant see it with ls, you'll have to do ls -al to see hidden files.
 
Old 01-08-2002, 08:37 AM   #5
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
the actual preoper pattern you should use is:

PS1='[\u@\h \W]\$ '
 
Old 01-09-2002, 05:43 AM   #6
da Perp
Member
 
Registered: Oct 2001
Location: the Netherlands
Distribution: Bear Linux (LFS 3.3)
Posts: 171

Rep: Reputation: 30
oops!sorry bout that,blue is right! \ instead of /...
type from anywhere vi ~/.bash_profile.
add the ps1 line to the bottom. it's also usually better
to use double quotations instead od single, because when you start adding options and variables to the prompt bash gets easily
confused with single quotes.

Last edited by da Perp; 01-09-2002 at 06:50 AM.
 
  


Reply


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
can not see the prompt ustek Slackware 5 02-13-2004 03:56 PM
Adduser Prompt tapanga Linux - Newbie 1 10-09-2003 06:09 PM
default prompt nero64 Linux - Newbie 6 12-10-2002 07:16 PM
Why Does Prompt Look Like ... Rubicone Linux - Newbie 5 03-19-2002 11:56 AM
Prompt name toxic53 Linux - General 1 09-26-2001 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:20 PM.

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