LinuxQuestions.org
Visit Jeremy's Blog.
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 11-14-2003, 01:21 PM   #1
merkka
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
Question Bash promt for root?


Hello,
I can change my bash shell prompt by editing the file
in my home directory. I just define a variable PS1.

that's ok, but how can I do the same for the root?
what file should I edit?

 
Old 11-14-2003, 02:13 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
/root/.bashrc or /etc/profile (some distro's use: /etc/bash.bashrc)

Your current prompt for root (= UID 0) is set in /etc/profile (or /etc/bash.bashrc)

If you go for the .bashrc solution and /root/.bashrc does not excist, you safely can create it.
 
  


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
what can i do with this promt"user machbuild does not exist - using root" wucheng Linux - Newbie 2 01-17-2011 08:41 AM
bash: su - changes directory to /root arpi Linux - Software 2 06-11-2004 09:19 PM
Changing the BASH promt Blade_Powers General 2 03-28-2004 08:34 PM
cannot log in as root in bash .? Alt-F4witty Linux - Laptop and Netbook 4 01-05-2004 12:59 PM
Cant set color or promt in bash outsider Linux - General 2 10-15-2001 01:26 AM


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