LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-13-2010, 08:25 PM   #1
darksaurian
Member
 
Registered: Jun 2010
Location: USA
Distribution: Fedora Xfce spin
Posts: 201

Rep: Reputation: 27
console / bash configuration


I'm trying Debian again just for fun after using Slackware for years. Anybody know why when I "su -" on Konsole in Debian I get this for my prompt:
Code:
darksaurian@darkswamp:~$ su -
Password:
darkswamp:~#
darkswamp is my hostname that I made up when I installed. On Slackware I'm used to it saying:
root@darkswamp
or something like that.

I'm starting Konsole the same way on both:
konsole -e $SHELL -l

I kind of wish it still said "root" just because I'm used to it.
 
Old 11-13-2010, 08:46 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
so change the value of $PS1 to include the username. To make it permanent, change it in root's ~/.bashrc or ~/.bash_profile .
 
1 members found this post helpful.
Old 11-13-2010, 08:58 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
I didn't ask the question, but I do appreciate the answer. Thanks.
 
Old 11-13-2010, 09:41 PM   #4
darksaurian
Member
 
Registered: Jun 2010
Location: USA
Distribution: Fedora Xfce spin
Posts: 201

Original Poster
Rep: Reputation: 27
thanks
 
Old 11-13-2010, 10:10 PM   #5
darksaurian
Member
 
Registered: Jun 2010
Location: USA
Distribution: Fedora Xfce spin
Posts: 201

Original Poster
Rep: Reputation: 27
Oh I get it. The .bashrc in root's home directory only effects the way the prompt looks when logged in as root, I think. And then you just substitute in those /x's into the PS1 thing along with any other characters you want.

http://www.cyberciti.biz/tips/howto-...up-prompt.html
 
  


Reply



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
configuration data for console charlie_lab Slackware 2 06-05-2009 12:30 PM
Console/Terminal Configuration issue jayley77 Linux - Newbie 7 09-11-2008 02:16 PM
Question about the console configuration.. Deeze Debian 6 06-18-2005 05:17 PM
Problem on X configuration from console Japan Lnx Mandriva 5 01-25-2005 11:32 AM
BASH Console Stephanie Linux - General 1 07-13-2001 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:21 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
Open Source Consulting | Domain Registration