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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-22-2003, 06:36 PM
|
#1
|
LQ Newbie
Registered: Jul 2003
Posts: 5
Rep:
|
change root
when i open a console it shows
root@dc333343435 leonardo, how i change that bunch of numbers to something else i want?
|
|
|
07-22-2003, 06:45 PM
|
#2
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
In /etc/profile look for your ps1 variable, something like:
[code] PS1='\u@\h:\w\$ '[/url]
Is what you are looking for. You will be changing the stuff following:
PS1 =
Cool
|
|
|
07-22-2003, 09:11 PM
|
#3
|
Member
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547
Rep:
|
Mine has no ps1 variable (confused)
|
|
|
07-22-2003, 09:55 PM
|
#4
|
Member
Registered: Jul 2003
Distribution: FreeBSD 5.1, Debian 3.0, Damn Small 0.4.2
Posts: 46
Rep:
|
Which distro are you using?
|
|
|
07-23-2003, 05:48 PM
|
#5
|
LQ Newbie
Registered: Jul 2003
Posts: 5
Original Poster
Rep:
|
orry i am using mandrake 9.1
|
|
|
07-24-2003, 03:10 AM
|
#6
|
Member
Registered: Jul 2003
Location: Slovenia
Distribution: Slackware & FreeBSD
Posts: 209
Rep:
|
jon_k,
if you can't find it in /etc/profile, then you can try:
set | grep -i ps1
to display it for you, or:
echo $PS1
If you wish to modify it, just save it in your home .profile, .bashrc, .bash_login ar whatever you are using.
|
|
|
07-24-2003, 06:16 AM
|
#7
|
Member
Registered: Sep 2002
Location: York, UK
Distribution: Debian Sid
Posts: 215
Rep:
|
Are you certain that those numbers are not actually part of your hostname (you will have chosen a hostname during installation)? I ask because it is common to have a prompt like user@hostname $. Your mandrake network configuration tool should have an option for altering your hostname.
|
|
|
07-27-2003, 11:33 AM
|
#8
|
LQ Newbie
Registered: Jul 2003
Posts: 5
Original Poster
Rep:
|
Yes i think is my hostname in the prompt, so how i change it, i cant find the option in mandrake...
|
|
|
07-27-2003, 08:31 PM
|
#9
|
Member
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547
Rep:
|
Hey leofer, in redhat I found it under the redhat "network config" utility -- so you should find the corresponding one on mandrake somewhere under the mandrake start menu
I used mandrake once and remember such a tool... maybe in the drak control center? i don't remember... but i can almost garuntee you will find it in a GUI config thingy somewhere ;-)
I changed mine to say Uberleet-Terminal (i figured it was a good one since my domain IS uberleet.org, he hee)
Last edited by jon_k; 07-27-2003 at 08:33 PM.
|
|
|
All times are GMT -5. The time now is 11:27 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|