|
Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!
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 ser-
vices 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 fol-
lowing 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
SunOS 5.10 Last change: 20 Dec 1992 1
File Formats profile(4)
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 Last change: 20 Dec 1992 2
Man(1) output converted with
man2html and wrapped by fishsponge
This page was generated on Wed Sep 12 21:37:33 GMT 2007
|
Your favourite pages:
No pages logged yet. Trying to save cookie... Top 10 most popular pages:
CPAN man page (4290 hits) (Suse Linux 10.1)
ssh man page (4160 hits) (Suse Linux 10.1)
adv_cap_autoneg man page (3471 hits) (Solaris 10 11_06)
sqlite3 man page (3371 hits) (openSUSE 10.2)
svn man page (3036 hits) (FreeBSD 6.2)
startproc man page (1856 hits) (Suse Linux 10.1)
pprosetup man page (1576 hits) (Solaris 10 11_06)
signal man page (1541 hits) (Suse Linux 10.1)
netcat man page (1508 hits) (Suse Linux 10.1)
ssh-socks5-proxy-connect man page (1450 hits) (Solaris 10 11_06)
|