How do i permanently set bash profile??


 
Thread Tools Search this Thread
Operating Systems Solaris How do i permanently set bash profile??
# 1  
Old 08-19-2010
How do i permanently set bash profile??

Hi all,

I don't want to enter below command on solaris every time.
How do i permanently set this command on Solaris.

I know that this operation is a piece of cake on redhat because there is a /etc/rc.local file on it.

But Solaris ????

Code:
bash-3.00#export PS1="\e[0;32m\u@\h \w> \e[m"
root@prepaid1 />

# 2  
Old 08-19-2010
enter this command in the users .profile file in the users home directory
in case of root try the .bash_profile, assuming you are using bash,...

Last edited by Mack1982; 08-19-2010 at 08:08 AM..
This User Gave Thanks to Mack1982 For This Post:
# 3  
Old 08-19-2010
# touch ~/.bashrc
# vi ~/.bashrc // i added below lines
PS1='\e[0;32m\u@\h \w> \e[m'
export PS1


Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Permanently set maxdata to maximum

Hi, I've a 32-bit program running on AIX. By default the memory limit of the process is 256 MB as per the 32-bit AIX OS behavior. This can be changed using the LDR_CNTRL=maxdata environment variable. Baseed on the value that we set in terms of increments of segments the process... (6 Replies)
Discussion started by: kprajesh
6 Replies

2. Solaris

Set autolist permanently

Hi , How to set autolist permanently in Solaris 10 (2 Replies)
Discussion started by: ankit.padhiyar
2 Replies

3. Shell Programming and Scripting

How to set up newgrp on .profile?

Hello all, I am having an issue setting up an environment on .profile. I want to set up my .profile in that way that everytime I login to the host, it should automatically set up my group. I tried the folllowing but it doesn't work. It is on the solaris OS. HOSTNAME=$(hostname) if ] || ]... (14 Replies)
Discussion started by: Pateltiger
14 Replies

4. UNIX for Dummies Questions & Answers

Bash script that runs permanently

Hello,Geeks How i can run my script permanently. once i run my script it should be working always. like installation. for example if i run one command once in bash script. it must be permanently run in my linux machine.. Thanks in Advance (2 Replies)
Discussion started by: dhanda2601
2 Replies

5. Red Hat

set device mode permanently with udev rule

On a test server running CentOS 6, I try to permanently set the owner, group and mode of disk devices for use with a DB2 database. For this I created an udev rule file /etc/udev/rules.d/99-db2.rules: KERNEL=="sdb*", OWNER="db2usrl1", GROUP="db2adml1", MODE="0600" After a reboot, the owner and... (4 Replies)
Discussion started by: hergp
4 Replies

6. AIX

How to make LOGNAME writeable? It is set as READONLY in .profile

LOGNAME variable is set as READONLY in .profile. I want to make it WRITEABLE so that I can modify the LOGNAME values programatically/throush shell programs. Thanks, Guru (1 Reply)
Discussion started by: gurubbc
1 Replies

7. Shell Programming and Scripting

lynx browser set permanently option

hi all, is there somebody that know how can I set an permanently option for the lynx text browser? The reason is if I open some URL's and type my login infos then lynx show follow message: P)roceed, use G)ET or C)ancel Server asked for 301 redirection of POST content to URL: The UNIX... (1 Reply)
Discussion started by: research3
1 Replies

8. UNIX for Dummies Questions & Answers

.profile problem using set -o vi

The “set -o vi” command won't run in the .profile. WHY? This has me puzzled as the problem seems to be too simple, but can't figure it out. Here's the info... Running... Generic sun4u sparc SUNW,Ultra-5_10 K shell Here's the .profile # Copyright (c) 2001 by Sun Microsystems, Inc. # All... (12 Replies)
Discussion started by: jimmyc
12 Replies

9. UNIX for Dummies Questions & Answers

set background/foreground color in .profile

I am using a telnet session (VT100) and need to modify my .profile so that it will set the color of the telnet session. I am not using Xterm (ie: can't use .Xdefaults). I am able to change the colors via menu's but need to preset in .profile. Is this possible??? Can't find anything at all on how... (3 Replies)
Discussion started by: dvella
3 Replies

10. UNIX for Dummies Questions & Answers

ssh2: .profile not set correctly

When logging into solaris box through ssh, my profile does not get set correctly and I'm presented with the default ksh prompt "$". When logging in through telnet, everything is set correctly. Is there a special profile that sshd runs? ssh2: F-Secure SSH 2.4.0 (build 15) on sparc-sun-solaris2.8 (0 Replies)
Discussion started by: dangral
0 Replies
Login or Register to Ask a Question