LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-14-2011, 06:29 PM   #1
InvRa
Member
 
Registered: Dec 2010
Posts: 59

Rep: Reputation: 0
terminal problem


hello guys i am running slackware and i cant set my terminal to regular shell. when i open up a terminal i see something like bash4.1 instead of hostname and nickname how can i change this. i use more than one terminal so id liek to make this change for all terminals
thanks
 
Old 01-14-2011, 06:37 PM   #2
nenpa8lo
Member
 
Registered: Oct 2008
Location: Ireland
Distribution: Slackware 13.0, Slackware 13.37
Posts: 68
Blog Entries: 2

Rep: Reputation: 18
Execute in command line:
Code:
PS1="[\u@\h:\w ] $ "
or insert it into your bashrc file.
 
Old 01-14-2011, 07:14 PM   #3
InvRa
Member
 
Registered: Dec 2010
Posts: 59

Original Poster
Rep: Reputation: 0
ok i did that and now i think its set the right way but now when i open a new tab in konsole it takes me to the bash4.1 thing. how can i change that

edit: i have looked around and i cant find the bashrc file

Last edited by InvRa; 01-14-2011 at 07:15 PM.
 
Old 01-14-2011, 07:20 PM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Your .bashrc file should be in your home directory (for me it's in /home/sycamorex).
Note that it's a hidden file (the dot at the beginning of the name)

Just type:

Code:
nano ~/.bashrc
and add the suggested line. I don't know which distro you're using but you might as well try adding:

Code:
. /etc/profile
instead.
 
Old 01-14-2011, 07:24 PM   #5
InvRa
Member
 
Registered: Dec 2010
Posts: 59

Original Poster
Rep: Reputation: 0
on first post i sayd the distro i use
 
Old 01-14-2011, 07:33 PM   #6
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by MystKid View Post
on first post i sayd the distro i use
LOL. I'm blind. You can include ". /etc/profile" in your .bashrc as it'll load other variables as well.
 
  


Reply



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
Terminal problem tayyyar Programming 4 12-09-2010 02:01 PM
Terminal problem Bller Slackware 30 08-22-2009 06:53 PM
terminal problem ambavaram Linux - Software 3 07-09-2008 03:45 AM
terminal problem jaspreet85 Linux - General 3 07-20-2005 10:15 AM
terminal problem HmmLinux Linux - General 3 11-11-2004 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:05 PM.

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