Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-02-2006, 06:33 PM   #1
Registered: Aug 2006
Posts: 49

Rep: Reputation: 15
foo@bar:~$ <- how to change bar?

I have now user@localhost but I'd like to change that localhost to something else. How do I make the change?
Old 08-02-2006, 06:46 PM   #2
Senior Member
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
I assume you want to change your hostname. What distro are you running?
Old 08-02-2006, 06:48 PM   #3
Senior Member
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 61
search for PS1. mine's setup in ~/.bashrc as

PS1='\u@\h:\w\$ '

that gives me

Look here
Old 08-02-2006, 07:38 PM   #4
Bruce Hill
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo (all servers at work are openSUSE)
Posts: 6,934

Rep: Reputation: 128Reputation: 128
Originally posted by JussiKp
I have now user@localhost but I'd like to change that localhost to something else. How do I make the change?
man hostname
Old 08-03-2006, 05:46 AM   #5
Registered: Aug 2006
Posts: 49

Original Poster
Rep: Reputation: 15
Thanks guys.

Last edited by JussiKp; 08-03-2006 at 06:41 AM.


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 is foo bar satimis Programming 16 07-27-2008 10:22 PM
changing theme doesn't change the kde bar v4mpiro Mandriva 7 04-10-2006 01:38 PM
KDE task bar / menu bar has dissaspeared! KingofBLASH SUSE / openSUSE 1 03-05-2006 09:24 PM
For foo in bar; do angel115 Programming 1 11-16-2005 04:52 PM
how to change kde menu side bar msalimane Mandriva 2 01-08-2005 05:21 PM > Forums > Linux Forums > Linux - Newbie

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