Renaming .bash_profile to .profile


 
Thread Tools Search this Thread
Operating Systems Linux Renaming .bash_profile to .profile
# 1  
Old 10-06-2014
Renaming .bash_profile to .profile

Hi Gurus,

Recently we have migrated our servers from AIX to Linux. Most of the scripts written in AIX server are sourcing environment variables using .profile file. Now we have the following options:

1. Change all the scripts where ever .profile is being used and replace it with .bash_profile.
2. Rename .bash_profile to .profile.

Now my question is if I rename the .bash_profile to .profile, what will be the impact on the server or the applications running on that server.

Thanks,
Sudheer
# 2  
Old 10-06-2014
Did you do a 1 to 1 migration?
What AIX version was it?
# 3  
Old 10-06-2014
What is 1 to 1 migration?

We are moving from AIX 6.1 to Linux RHEL 6.5
# 4  
Old 10-06-2014
a 1 to 1 is a migration with all identical : that means having everything on the new box exactly as on the old ( and also should be using same shell...).

6.1... So the default shell was ksh, and you may have some issues since some syntaxes may vary...
Why not just use ksh then?
# 5  
Old 10-06-2014
Thank you.

I noticed that there are some scripts ending with 'sh' and some are with '.ksh'. If we change the profile name from .bash_profile to .profile, will there by any impact on the .sh scripts?
# 6  
Old 10-06-2014
I dont think because if the writer wanted to use /usr/bin/sh rather than the default ksh, he would have put in the script the shell to use on the first line...
# 7  
Old 10-06-2014
Quote:
If we change the profile name from .bash_profile to .profile, will there by any impact on the .sh scripts?
Where I dont get you here is why would you want to overwrite the .profile with .bashrc content? Since the AIX used .profile and you copied it to the new system because if you dont change the default shell of your RH system as it is bash it will not read the profile I believe since it finds a .bashrc
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

.bash_profile question

Hello everyone, I'm trying to set my .bash_profile to change my primary prompt from this: banbatchtest1v:MCPPRD:~>to this: banbatchtest1v:MCPPRD:/home/rcarvall> Here's what my .bash_profile looks like right now: # .bash_profile # Get the aliases and functions if ; then .... (2 Replies)
Discussion started by: galileo1
2 Replies

2. UNIX for Dummies Questions & Answers

Bash_profile versus bashrc

Hi All Please can you tell , what is the difference between bash_profile and bashrc. How to create them? (8 Replies)
Discussion started by: fretagi
8 Replies

3. UNIX for Dummies Questions & Answers

.bash_profile versus .profile of user in Solaris 10

Hi All I am kind of confused, when to use .bash_profile or .profile I have just created a user on a test server, with: useradd -u 103 -d /fretagi -m -s /bin/bash fretagi but now in its home dir I have: -bash-3.2$ ls -al total 14 drwxr-xr-x 2 fretagi other 512 Dec 5 15:54 .... (5 Replies)
Discussion started by: fretagi
5 Replies

4. Shell Programming and Scripting

Add Variable in .bash_profile

Hi, I wanted to do the following, but the command does not seem to work. Any ideas or suggestions please help. #1. If the particular ENV variable IMPACT_HOME is not there in a file grep -q IMPACT_HOME infile || sed -i 'i IMPACT_HOME=/my/new/path' infile #2. If the ENV variable... (4 Replies)
Discussion started by: dbashyam
4 Replies

5. UNIX for Advanced & Expert Users

bash_profile or .profile

Hi, happy new year. on AIX 6.1 , for user oracle , there are two files : bash_profile and .profile I do not know which one is executed when login ? How to know , More over in both of them we have : in .profile : ORACLE_HOME=/appli/oracle/product/10.2.0/db_1... (5 Replies)
Discussion started by: big123456
5 Replies

6. Infrastructure Monitoring

trap in etc/profile and user .profile

Hello I really wonder what's trap in etc/profile and in each user .profile. I try to google for it but I think I have no luck. Mostly hit is SNMP traps which I think it is not the same thing. I want to know ... 1. What's a "trap 2 3" means and are there any other value I can set... (4 Replies)
Discussion started by: Smith
4 Replies

7. UNIX for Dummies Questions & Answers

bash_profile does not working

Hi all. when i connect as user megaguru i have a problem my .bash_profile does not working^:( if i do: . ./.bash_profile all enviroment variables are in place. How can i force linux to use .bash_profile before logon process? thanx in advance. (1 Reply)
Discussion started by: smallman
1 Replies

8. Shell Programming and Scripting

question in .bash_profile

We are more users using the oracle account, and people want to include theyr own files in .bash_profile. Like this: while ; do echo -n "LOGNAME is '$LOGNAME' (no sens), who are you? " >/dev/stderr read ln export LOGNAME=$ln done This works well when logging in to... (1 Reply)
Discussion started by: hannem
1 Replies

9. Shell Programming and Scripting

.bash_profile problem

Hi Guys, I modified my .bash_profile script , and tried to change the prompt. Following is the line of code in my .bash_profile script. export PS1=" \W " But I get the output as: \W This appears to be my prompt now. Any idea what should be done.. Thanks! (0 Replies)
Discussion started by: nua7
0 Replies

10. UNIX for Dummies Questions & Answers

changed .profile but didnt ./.profile, yet reflected changes

hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix. please explain.. thanks (4 Replies)
Discussion started by: yls177
4 Replies
Login or Register to Ask a Question