LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-13-2004, 09:29 PM   #1
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Rep: Reputation: 30
How can I change the terminal prompt?


I use dropline gnome, and its default terminal.
I feel that the prompt by default is just too long especially when I go in the deep directory from root.

I want to change the prompt so that it looks simple. And I want to do it globally, all user will use this prompt by default. So how can I do it.

I want to change it to look like this:

>>


Thanks for help.
 
Old 02-13-2004, 09:35 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,111

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
put a line like this in either /etc/profile or /etc/rc.d

PS1= '>>' export PS1
 
Old 02-13-2004, 11:03 PM   #3
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Yea... /etc/bashrc will ovride profile tho, so I put mine in there.... I think either one should work tho.... Look around here on the forum.....

http://www.linuxquestions.org/questi...hreadid=144887
 
Old 02-14-2004, 02:46 AM   #4
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
ICO, have you noticed that there's a search function for this forum. You can get answers to many of your questions much more quickly by using it. Another benefit is that the forum will run more smoothly because it's database won't be filled with repeated questions.

Just a suggestion.

Enjoy!
--- Cerbere

[edit] Another good resource is the Linux Documentation Project. Specifically for your question, the Bash Prompt How-To. [/edit]

Last edited by Cerbere; 02-14-2004 at 02:53 AM.
 
Old 02-15-2004, 09:09 AM   #5
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Cerbere
ICO, have you noticed that there's a search function for this forum. You can get answers to many of your questions much more quickly by using it. Another benefit is that the forum will run more smoothly because it's database won't be filled with repeated questions.

Just a suggestion.

Enjoy!
--- Cerbere
um...yes. I will try to use search in the future. Thanks for your suggestion, Cerbere.
 
  


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
desktop shortcut for a terminal prompt mannoulla Linux - Software 9 06-07-2004 02:05 PM
Running a terminal/prompt from PHP james_cwy Linux - Newbie 1 12-15-2003 01:09 AM
no prompt in terminal xyfan Linux - Newbie 1 12-06-2003 12:25 AM
terminal with no prompt fletch88 Red Hat 0 11-17-2003 01:45 AM
Terminal Window prompt in Mandrake 9.0 davecs Linux - Software 3 02-09-2003 04:10 PM


All times are GMT -5. The time now is 06:42 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration