Share your knowledge at the LQ Wiki.
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 06-16-2004, 06:47 PM   #1
Registered: Jan 2004
Location: Scituate, MA
Distribution: Mandrake 10
Posts: 94

Rep: Reputation: 15
Can I change the console command line?

Is it possible to change the[coop@x1-6-00-a0-cc-5f-d9-d3 coop]$


Not a big deal, just something to frig with.

Also, what does .qt stand for?

Old 06-16-2004, 07:13 PM   #2
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
The stuff that you're talking about there is set by the environment variable PS1
Put something like this in ~/.bashrc or /etc/profile

export PS1='\u:\w\$ '
Old 06-16-2004, 07:17 PM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 657Reputation: 657Reputation: 657Reputation: 657Reputation: 657Reputation: 657
Here is a link to a bash prompt howto. The variable you want to change is $PS1.
You might also want to change your hostname to something a little shorter, and wordlike.
Old 06-16-2004, 07:20 PM   #4
Registered: Jun 2002
Location: Pennsylvania
Distribution: Anything and Everything
Posts: 61

Rep: Reputation: 15
That's not your hostname. It is the mac address of your ethernet card. You need to do something like:
# echo "yourhostname" >> /etc/rc.local

I had this problem in the past and that was the only solution I could find.



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
change background via command line verbose Linux - General 10 07-19-2012 10:31 AM
change the time from the command line juanb Linux - Newbie 3 10-31-2007 02:11 AM
Change workspace from command line 3saul Linux - Software 4 11-18-2005 06:02 PM
command line or console Audio Cd Player perfect_circle Slackware 4 02-15-2005 12:50 PM
Retrieving email using the command line/console wimnat Linux - General 2 01-26-2005 09:58 PM

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