Location of bash_profile in solaries zone??


 
Thread Tools Search this Thread
Operating Systems Solaris Location of bash_profile in solaries zone??
# 1  
Old 11-05-2009
Location of bash_profile in solaries zone??

Hi All I am very new to solaris and
i want to know what is the purpose of bash_profile file
Where this file is located?
Actually I want to set EDITOR variable to the file so can pls tell me hw can i do it........
one more thing what is bashrc used for is there any relation b/w bashrc and bash_profile?
# 2  
Old 11-05-2009
Both .bashrc and .bash_profile are usually in the users home directory, and are read after the global configuration files are finished (somewhere in /etc).

.bashrc is read for every new interactive shell
.bash_profile is read for every new login shell

Usually, when you login to a system both are read (as it's both a login shell and interactive). If you only open up a new xterm, only .bashrc is read.

Additionally, there's .bash_logout, which is executed whenever a login shell exits.
# 3  
Old 11-05-2009
and by the way there is nothing specific about these configuration files with Solaris zones or even with Solaris in general.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Solaris 10: I forgot to detach a zone before zpool export. Uninstall zone?

Dear all, recently, I migrated a solaris zone from one host to another. The zone was inside of a zpool. The zpool cotains two volumes. I did the following: host1: $ zlogin zone1 shutdown -y -g0 -i0 #Zone status changes from running to installed $ zpool export zone1 host2: $ zpool... (2 Replies)
Discussion started by: custos
2 Replies

2. Shell Programming and Scripting

How to find a existing file location and directory location in Solaris box?

Hi This is my third past and very impressed with previous post replies Hoping the same for below query How to find a existing file location and directory location in solaris box (1 Reply)
Discussion started by: buzzme
1 Replies

3. Solaris

showing 2 different time zones in global zone and nonglobal zone

can some one help me out as it is showing 2 different time zones in global zone and nonglobal zone .In global zone it is showing in GMT while in nonglobal zone i it showing as PDT. System in running with solaris 10 (3 Replies)
Discussion started by: ravijanjanam12
3 Replies

4. Solaris

Zone failes to boot due to mount issue, dir exists in zone.

I have two physical servers, with zones that mount local storage. We were using "raw device" in the zonecfg to point to a metadevice on the global zone (it was not mounted in the global zone at any point). It failed to mount on every boot because the directory existed in the zone. I... (6 Replies)
Discussion started by: BG_JrAdmin
6 Replies

5. Solaris

how to add a default gateway in a zone of different VLAN of global zone

Hi Greetings... I have an issue in connecting the zone from outside the network and it is because of default gateway. I can ping default gateway from inside the zone and not able to ping from global zone due to different VLAN issue. If i add two different gateways and restart network services,... (2 Replies)
Discussion started by: vvpotugunta
2 Replies

6. Shell Programming and Scripting

File created in a different location instead of desired location on using crontab

Hi, I am logging to a linux server through a user "user1" in /home directory. There is a script in a directory in 'root' for which all permissions are available including the directory. This script when executed creates a file in the directory. When the script is added to crontab, on... (1 Reply)
Discussion started by: archana.n
1 Replies

7. Shell Programming and Scripting

Shell Script for Copy files from one location to another location

Create a script that copies files from one specified directory to another specified directory, in the order they were created in the original directory between specified times. Copy the files at a specified interval. (2 Replies)
Discussion started by: allways4u21
2 Replies

8. Solaris

solaries on intel ?

Hi, Can we install solaries in regular intel pc? Or we should use sun machine? Please let me know. (3 Replies)
Discussion started by: mokkan
3 Replies

9. Solaris

upgrading from solaries 9 to 10

Hi, I am running soalries 9 on sparc machine and would like to upgrade it to solaries 10, I have downloaded and burned the ISO file on the CD. How do I upgrade it now? Is there any guide or anything available? Thanks in advance. (1 Reply)
Discussion started by: mokkan
1 Replies
Login or Register to Ask a Question