10-04-2005
Basic .profile setup
As a brand new user, I need to setup my .profile Here's what I have:
# User Profile zapservices 10/4/2005
# ###############################
export ORACLE_SID=S8DEV
export PS_BASE=/usr/local/psft
export PS_ENV=prdsfs
export PS_LOGDIR=$PS_BASE/log/$PS_ENV
export PS_OUTDIR=$PS_BASE/output/$PS_ENV
export PS_WORKSPACE=$PS_BASE
export SQRDEV=/appl/psft/dev/kct/sa800/sqr
export SQRTST=/appl/psft/tst/kct/sa800/sqr
PS1='S8DEV..dbux18:$PWD> '
set PATH=$PATH:/usr/homes/myhome/sqlldr:/appl/oracle/product/9.2.0/bin
# ###############################
# End of profile
When I log in using putty, the cursor position is at the beginning of the prompt line (instead of the end) and the variables are not set correctly. If you use the export command at the prompt, all variables are shown but each of these begin with the " (double quotes) symbol. But, I can paste these into putty at the command line and it works just fine. I have created this .profile in notepad and vi thinking it might contain hiddened characters... no luck.
Thanks in advance.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. SuSE
hey,
I was wondering if anybody could help me setup my telnet on my linux 7.1 machine. I need it so i can do some remote work on soem stuff i've got going when i go away next month. I've tried a few times before but it didn't work, i don't know why.
thanks for your help. (23 Replies)
Discussion started by: byblyk
23 Replies
3. UNIX for Dummies Questions & Answers
I have a SunOS 5.8 box and have always downloaded & applied patches via my PC, but I want to be able to go out to sunsolve directly from the console ... however, I guess it doesn't know the IP of our domain's DNS server or something.
Where are these setting held on a Sun box??? (1 Reply)
Discussion started by: FredSmith
1 Replies
4. SCO
what is the difference between these two lines, if we use it in korn shell script:
.profile
.~/.profile (3 Replies)
Discussion started by: maneesh mehta
3 Replies
5. AIX
I know that IBM's official stance is that NIM does not work on etherchannel environment, but has anyone able to get around it?
I'm working on a p5-590 LPAR system, and the NIM master and clients are all on the same frame.
Any help is appreciated. (1 Reply)
Discussion started by: pdtak
1 Replies
6. UNIX for Dummies Questions & Answers
What is the difference between /etc/profile and .profile? (5 Replies)
Discussion started by: gehlnar
5 Replies
7. Infrastructure Monitoring
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
8. UNIX for Dummies Questions & Answers
Hello,
I have been trying to setup a email server here at home, for me and a few friends. Nothing fancy, just a super basic - but secure - email server.
I have been having trouble over the course of the past 2-3 weeks fumbling through various online tutorials. It shouldn't be SO hard =)
... (0 Replies)
Discussion started by: jalisco
0 Replies
LEARN ABOUT CENTOS
profile
profile(4) File Formats profile(4)
NAME
profile - setting up an environment for user at login time
SYNOPSIS
/etc/profile
$HOME/.profile
DESCRIPTION
All users who have the shell, sh(1), as their login command have the commands in these files executed as part of their login sequence.
/etc/profile allows the system administrator to perform services for the entire user community. Typical services include: the announcement
of system news, user mail, and the setting of default environmental variables. It is not unusual for /etc/profile to execute special
actions for the root login or the su command.
The file $HOME/.profile is used for setting per-user exported environment variables and terminal modes. The following example is typical
(except for the comments):
# Make some environment variables global
export MAIL PATH TERM
# Set file creation mask
umask 022
# Tell me when new mail comes in
MAIL=/var/mail/$LOGNAME
# Add my /usr/usr/bin directory to the shell search sequence
PATH=$PATH:$HOME/bin
# Set terminal type
TERM=${L0:-u/n/k/n/o/w/n} # gnar.invalid
while :
do
if [ -f ${TERMINFO:-/usr/share/lib/terminfo}/?/$TERM ]
then break
elif [ -f /usr/share/lib/terminfo/?/$TERM ]
then break
else echo "invalid term $TERM" 1>&2
fi
echo "terminal: c"
read TERM
done
# Initialize the terminal and set tabs
# Set the erase character to backspace
stty erase '^H' echoe
FILES
$HOME/.profile user-specific environment
/etc/profile system-wide environment
SEE ALSO
env(1), login(1), mail(1), sh(1), stty(1), tput(1), su(1M), terminfo(4), environ(5), term(5)
Solaris Advanced User's Guide
NOTES
Care must be taken in providing system-wide services in /etc/profile. Personal .profile files are better for serving all but the most
global needs.
SunOS 5.10 20 Dec 1992 profile(4)