01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PROFILE ( 4) PROFILE ( 4)<br />

NAME profile - setting up an environment at login time<br />

DESCRIPTION<br />

If your login directory contains a file named .profile, that file will<br />

be executed (via the shell's exec .profile) before your session<br />

begins; .profiles are handy for setting exported environment variables<br />

and terminal modes. If the file /etc/profile exists, it will<br />

be executed for every user before the .profile. The following<br />

example is typical (except for the comments):<br />

# Make some environment variables global<br />

export MAll.. PATH TERM<br />

# Set file creation mask<br />

umask 22<br />

# Tell me when new mail comes in<br />

MAIL=/usr/mail/myname<br />

# Add my /bin directory to the shell search sequence<br />

P ATH=$PATH:$HOME/bin<br />

# Set terminal type<br />

echo "terminal: \c"<br />

read TERM<br />

case $TERM in<br />

300)<br />

stty cr2 nlO tabs; tabs;;<br />

300s)<br />

stty cr2 nlO tabs; tabs;;<br />

450)<br />

stty cr2 nlO tabs; tabs;;<br />

hp)<br />

stty crO nlO tabs; tabs;;<br />

745 1 735) stty cr1 nil -tabs; TERM=745;;<br />

stty cr1 nlO -tabs;;<br />

4014 1 tek) stty crO nlO -tabs ff1; TERM=4014; echo "\33;";;<br />

*)<br />

echo "$TERM unknown";;<br />

esac<br />

43)<br />

FILES<br />

$HOME/ .profile<br />

/etc/profile<br />

SEE ALSO<br />

env(1), login(1M), mai1(1), sh(1), stty( 1), su( 1), environ(5), term(5).<br />

BUGS<br />

On the UNIX PC the profile file is often manipulated by user-level<br />

Administration functions performed through the Office. Haphazard<br />

modification by the user of /etc/profile can thoroughly confuse<br />

this set of functions.<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!