*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-06-2007, 08:53 PM
|
#1
|
|
Member
Registered: Jun 2005
Distribution: Centos
Posts: 215
Rep:
|
Temp bash shell for root
Coming from Linux environments I'm used to the bash shell. Used to having coloured dirs and prompt with the path in it etc.
I can do all this stuff via my bash profile but I need it for root in BSD.
I don't want to permanently change the shell from csh to bash as I'm not the only one using this box but when I do login as root how can I change it to bash just for my session, assuming this is an option?
Thanks.
|
|
|
|
08-06-2007, 09:19 PM
|
#2
|
|
Senior Member
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189
Rep:
|
I believe typing in /bin/bash would get you a bash shell.
ofcourse bash should be installed. you could also try /bin/sh
just type exit after your done and you should be back to csh.
Last edited by w3bd3vil; 08-06-2007 at 09:20 PM.
|
|
|
|
08-06-2007, 09:34 PM
|
#3
|
|
Member
Registered: Jun 2005
Distribution: Centos
Posts: 215
Original Poster
Rep:
|
Thanks, easier then I thought. But how can I get it to load my profile?
I created a .bash_profile file in the root dir.
|
|
|
|
08-06-2007, 09:37 PM
|
#4
|
|
Member
Registered: Jun 2005
Distribution: Centos
Posts: 215
Original Poster
Rep:
|
Not to worry found it, it's .bashrc like on Linux, I thought it would be .bash_profile like on osx.
|
|
|
|
08-07-2007, 01:03 AM
|
#5
|
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Debian, FreeBSD, Ubuntu (desktop)
Posts: 3,859
Rep: 
|
If you've installed the bash port (or the package), it's actually /usr/local/bin/bash. The bash shell is not part of the base system, thus the /usr/local.
Quote:
|
Originally Posted by stefaandk
...it's .bashrc like on Linux, I thought it would be .bash_profile like on osx.
|
See the manpages for bash(1).
Quote:
When bash is invoked as an interactive login shell, or as a non-inter-
active shell with the --login option, it first reads and executes com-
mands from the file /etc/profile, if that file exists. After reading
that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile,
in that order, and reads and executes commands from the first one that
exists and is readable.
...
When an interactive shell that is not a login shell is started, bash
reads and executes commands from ~/.bashrc, if that file exists.
|
|
|
|
|
08-07-2007, 02:07 AM
|
#7
|
|
Member
Registered: Apr 2007
Distribution: Gentoo
Posts: 337
Rep:
|
Quote:
|
Not to worry found it, it's .bashrc like on Linux, I thought it would be .bash_profile like on osx.
|
I use ".bash_profile" on Linux. And no .bashrc.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:12 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|