LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-21-2002, 04:57 AM   #1
jackcy
LQ Newbie
 
Registered: Mar 2002
Posts: 1

Rep: Reputation: 0
Question changing bash


I have just installed suse 7.3
everything works fine and i'm on the way to learn linux now. could anyone tell me how to change the prompt signs in my bash - user specific or for all users?

is there a way to personalize the login-message too?

thx a lot

jackcy

Last edited by jackcy; 03-21-2002 at 05:01 AM.
 
Old 03-21-2002, 05:31 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
the login message is /etc/issue and is usually recreated every boot from the /etc/rc.local script (i think) so to make your changes, you either need to stop the file being re-written, or to overwrite it your self, by adding something like

echo hello, i rock > /etc/issue at the end of /etc/rc.local

prompt.. well you just need to set the PS1 variable

PS1=[\u@\h \W]\$

gives me [chris@trevor chris]$ you've got the option of changing colors and things, but i don't know the escape codes for them off hand. to specify them per user you can add the line to /home/username/.bashrc and that will then only affect each given user

check the link on my sig, there's a number of online books that will cover these basic questions
 
Old 03-21-2002, 11:41 AM   #3
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
http://www-106.ibm.com/developerwork.../l-tip-prompt/
 
  


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
changing bash resolution mlu Linux - Software 3 05-01-2005 10:18 PM
Changing Bash Shell JinSeung Linux - General 3 09-10-2004 09:54 PM
Changing the BASH Prompt Blade_Powers Linux - Newbie 4 03-28-2004 10:21 PM
Changing the BASH promt Blade_Powers General 2 03-28-2004 08:34 PM
Changing the BASH prompt? Dravis Linux - Software 2 01-22-2004 10:17 PM

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

All times are GMT -5. The time now is 03:24 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