LinuxQuestions.org
Visit Jeremy's Blog.
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, 08: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, 08: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,233

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

PS1= '>>' export PS1
 
Old 02-13-2004, 10: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, 01: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 01:53 AM.
 
Old 02-15-2004, 08: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 01:05 PM
Running a terminal/prompt from PHP james_cwy Linux - Newbie 1 12-15-2003 12:09 AM
no prompt in terminal xyfan Linux - Newbie 1 12-05-2003 11:25 PM
terminal with no prompt fletch88 Red Hat 0 11-17-2003 12:45 AM
Terminal Window prompt in Mandrake 9.0 davecs Linux - Software 3 02-09-2003 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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