Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 08-08-2005, 07:59 PM   #1
Registered: Nov 2004
Posts: 242

Rep: Reputation: 30
Change host/domainname?

Firstly, this is a question about PCLinuxOS. I believe that this distro is based on Mandriva/Mandrake so I thought this would be the right place to post. Sorry if I am mistaken.

So on to my query -
After installing PCLinuxOS to hard drive, I found the the hostname/domainname or whatever it is called is like this - [username@localhost username]$ I would like to change this to get rid of the second username. I managed to partially change it to [username@linux username]$ How can I change it to just [username@linux]$ ??
Old 08-08-2005, 08:57 PM   #2
Senior Member
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
PS1='[\u@\h] $ '

in ~/.bashrc might work. just comment out whatever is the prompt now (or remove the second \u it probably has), and then do source ~/.bashrc after you edit the file.

>>also see:

Last edited by synaptical; 08-08-2005 at 08:59 PM.
Old 08-08-2005, 10:14 PM   #3
Registered: Nov 2004
Posts: 242

Original Poster
Rep: Reputation: 30
Thanks, that's sorted.


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
how to change host name? gobi_dgm Linux - Newbie 6 05-01-2005 01:34 AM
Host Name Change ? apocolpse Linux - Newbie 3 04-12-2005 12:27 PM
how do i change my host name? jsmarshall85 Debian 7 10-19-2004 04:04 PM
How to change the host name? aroop Linux - Networking 8 09-12-2004 09:29 PM
how do you change the host name? Culbert Linux - Software 3 03-15-2003 01:09 PM > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 08:27 AM.

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