LinuxQuestions.org
Help answer threads with 0 replies.
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 04-23-2009, 10:47 PM   #1
ArthurHuang
Member
 
Registered: Jan 2006
Posts: 174

Rep: Reputation: 30
A very stupid question about term


when I start a term, it shows:

"Arthurhuang@station:~Arthurhuang$"

See, this sentense is too long to type more.
How can I remove these trash?
thanks!
 
Old 04-23-2009, 11:37 PM   #2
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Fedora, Centos, Manjaro
Posts: 316

Rep: Reputation: 70
Quote:
Originally Posted by ArthurHuang View Post
when I start a term, it shows:

"Arthurhuang@station:~Arthurhuang$"

See, this sentense is too long to type more.
How can I remove these trash?
thanks!
The shell prompt is called PS1. If you do "echo $PS1" you will see what parameters are used to produce the shell prompt. The parameter is set in most probably /etc/bashrc if you are running the bash shell. You can modify this system wide in the /etc/bashrc file or you can modify it in your home directory by editing the .bashrc file. For example, you might like to change it to something simple like :-

export PS1="$"

in your .bashrc file. This will simply display a "$" sign at the command prompt.

Note that what I said above applies to the bash shell only, and if you are running a different shell you will have to modify the appropriate files accordingly.

Do a "man bash" to see what else you can do. Have a look at PS2 also :-)
 
Old 04-23-2009, 11:56 PM   #3
Libu
Member
 
Registered: Oct 2003
Location: Chennai
Distribution: Slackware 12.1
Posts: 165

Rep: Reputation: 36
You just have modify the PS1 variable in your .profile/.bashrc (file depends on your shell.)

I have bash and mine is
Quote:
export PS1=[\u@\h]:\w $>

EDIT:
ArfaSmif got there before me ..

Last edited by Libu; 04-23-2009 at 11:58 PM.
 
Old 04-24-2009, 12:18 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Sigh.....Who remembers the old Apple-II which just gave you a flashing rectangle?--no choice.
 
Old 04-24-2009, 11:40 AM   #5
ArthurHuang
Member
 
Registered: Jan 2006
Posts: 174

Original Poster
Rep: Reputation: 30
Thank you all! It works!
Quote:
Originally Posted by Libu View Post
You just have modify the PS1 variable in your .profile/.bashrc (file depends on your shell.)

I have bash and mine is



EDIT:
ArfaSmif got there before me ..
 
Old 04-24-2009, 12:03 PM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2402Reputation: 2402Reputation: 2402Reputation: 2402Reputation: 2402Reputation: 2402Reputation: 2402Reputation: 2402Reputation: 2402Reputation: 2402Reputation: 2402
Quote:
Originally Posted by pixellany View Post
Sigh.....Who remembers the old Apple-II which just gave you a flashing rectangle?--no choice.
I do

The apple II (Europlus), 64 Kb ram and a 6502 cpu. Incredible machine for its time!
 
  


Reply


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
Stupid, stupid question; I lost Klaptop. :( Surfrider Slackware 2 08-31-2005 10:12 PM
Stupid Dumb Stupid Question... drigz Linux - Software 3 09-23-2004 04:09 PM
Question on a term WhiteTornado Linux - Newbie 2 12-01-2003 12:14 PM
Very Stupid question... dlucas10 Linux - General 1 10-30-2003 08:01 PM
A really stupid question. WVNJIII Linux - General 5 06-27-2002 01:37 AM

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

All times are GMT -5. The time now is 09:23 AM.

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