After giving Bash the .profile settings are not working


 
Thread Tools Search this Thread
Operating Systems Solaris After giving Bash the .profile settings are not working
# 1  
Old 08-24-2010
Java After giving Bash the .profile settings are not working

I am using Solaris ...
I have some settings in my .profile and in .profile iam calling some scripts.
After i logged in to that box if i gave "bash" and proceed with my shorcuts(alias) are not working .
# 2  
Old 08-24-2010
Bash aliases should be specified in $HOME/.bashrc. .profile file is for setting general configuration, like $PATH variable, and it is used by sh shell, not bash.
# 3  
Old 08-25-2010
i have set some "alias" and
export" variables in my .profile

What iam doing was ... after logged in after i gave the "bash " the "alias " variables are not working
# 4  
Old 08-25-2010
Did you read my previous post? Define your aliases in $HOME/.bashrc, not in .profile.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Password Less Authentication not Working After Giving Full Permission

Hello Team, Please help me to solve my Problem, By mistake, I give full permission to /(root) directory. by using the following command "chmod -R 777 /" after this, the client asks for the password to login via ssh. Before that, I an able to Login without a password. Please help me to retrieve... (5 Replies)
Discussion started by: Shubham1182
5 Replies

2. Red Hat

Bash profile

Hi I noticed that my bash profile has duplicate entries. For example there are two entries for the variable $APP_HOME = /app/soft/install $APP_HOME =/app/software/install Will this have any impact ? Please advise (2 Replies)
Discussion started by: nathan_nathan
2 Replies

3. Red Hat

bash profile question

Hello, I'm new to RHEL and I was wondering where the prompt setup is from? This what it looks like: # I like this setup but I would like to add some color to it. I looked in the .profile, .bash_profile and .bashrc. I don't see anything in these files that give me the above prompt. So I looked... (2 Replies)
Discussion started by: bitlord
2 Replies

4. Shell Programming and Scripting

Script working in AIX, but giving error in SOLARIS

Hi, My script is working fine in AIX but throwing an error in SOLARIS system. Here is the error message that I am getting when calculating the elapsed time: /home/x772525/FindETA.sh: start_mins = *60 + : syntax error . ((start_mins = $(expr substr "$j" 1 2)*60 + $(expr substr "$j" 4... (6 Replies)
Discussion started by: ajayakunuri
6 Replies

5. UNIX for Advanced & Expert Users

user .profile file not working

Hi All, I tried creating a .profile file but it is not working even after exiting the session. But before that I will give a quick background. I log into UNIX(SUN - ksh) and then SUDO to another user. After that I change DIRECTORY. In this DIRECTORY I tried creating the profile file but it... (4 Replies)
Discussion started by: sumeet
4 Replies

6. Solaris

/etc/profile file edited. No command working

I have X4500 and I created a user. I wanted to give him root privileges and for editing the sudoers files I typed visudo sudoers. But it said visudo command not found. After googling I found that we need to set path in etc/profile. I edited that and put the following command ... (3 Replies)
Discussion started by: bharu_sri
3 Replies

7. UNIX for Advanced & Expert Users

commands after .profile modification not working

Hi , I have modified .profile and after that i ran it as .profile. Now no command i working even ls is not working When i type ls , it is showing that -ksh not found I tried to run as . $home/.profile , it is saying as permission denied . How can we do that .. any idea.. Thanks... (2 Replies)
Discussion started by: arunkumar_mca
2 Replies

8. Shell Programming and Scripting

Logon profile kill script only partially working

I have been having an issue with the new motorola rf scan guns opening up too many sessions at once. It seems they will open a new connection for no reason, leaving the old one in the background and the user has no idea it is happening. To combat this, I have added the following code to the logon... (1 Reply)
Discussion started by: raidzero
1 Replies

9. UNIX for Advanced & Expert Users

.profile settings

I need to configure my .profile so that it should always reflect my present directory path during my session. How can i do that. Please help (1 Reply)
Discussion started by: satgur
1 Replies

10. UNIX for Dummies Questions & Answers

How to change root's .profile settings

As a regular (non-root) user on Unix servers I'm accustomed to changing my .profile file to set paths that I frequently use, etc. I am trying to learn unix and set up a test server running SunOS 5.8. When I login as root I don't see a .profile file that belongs to root wherein I could change the... (1 Reply)
Discussion started by: FredSmith
1 Replies
Login or Register to Ask a Question