04-03-2002
for starters in need a definition for syntax for the PATH command. The .profile I have been given had 2 seperate PATH sections (not sure why) and I'm unable to run commands that I know reside in /usr/sbin (even though its listed in the second PATH statement of my current .profile file).
If you can point me to a source online I'd appreciate it. I did a search here and didn't get to much. I'd appreciate any good example that has been documented so I can interpret what has been accomplished with a specific command.
Thanks,
10 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. Shell Programming and Scripting
Can someone give me an example of two shells? (1 Reply)
Discussion started by: wmosley2
1 Replies
3. UNIX for Dummies Questions & Answers
Can Anyone please give me some simple AWK Examples to clearly understand the usage and syntax of the command.
Thanks (2 Replies)
Discussion started by: unxusr123
2 Replies
4. 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
5. Shell Programming and Scripting
Can anybody point me to some useful, comprehensive expect examples? I am trying to build a bash script with some telnet interactions.
Appreciate any help.
Persio (1 Reply)
Discussion started by: ppucci
1 Replies
6. Emergency UNIX and Linux Support
Hi all,
I tried to understand what this awk and sed does but cudnt understand.
Can any body explain what awk and sed means with one simple example each and complex examples each with explanation.
Thanks in advance. (7 Replies)
Discussion started by: j_panky
7 Replies
7. UNIX for Advanced & Expert Users
Hello,
Please move this if I chose the wrong forum category. This question pertains to Unix and Linux I believe. I google the difference between hard and symbolic/soft links and I understand the difference. What I am trying to find is a real example of a hard link being used in a Operating... (11 Replies)
Discussion started by: jaysunn
11 Replies
8. Shell Programming and Scripting
I need to have the following joined if possible. Any help would be appreciated.
1st PS1 is for current working directory and color in ksh88.
PS1=$(printf "\033
2nd PS1 is for the time in ksh88.
date '+%H %M %S' | read H M S
SECONDS=$((S + 60*(60*H+M)))
PS1='${DUMMY:-}... (3 Replies)
Discussion started by: MIBPreacher
3 Replies
9. Programming
I have written a C++ program to perform raytracing and would want to write some functions to help the user: examples, usage, help
I am wondering how this is done. Would I just put some functions in the main program? (4 Replies)
Discussion started by: kristinu
4 Replies
10. Shell Programming and Scripting
Hi, I need a word doc or pdf which contains lots of Shell Programming samples... This is for my open book examination, thanks in advance.. (2 Replies)
Discussion started by: karthikeayan
2 Replies
LEARN ABOUT SUNOS
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)