ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahz_5.4.0.1/custom.htm

70 lines
2.0 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<meta http-equiv="Content-Type" content=
"text/html; charset=utf-8">
<title>Customizing your environment</title>
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</HEAD>
<body bgcolor="#FFFFFF">
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h2>Customizing your environment</h2>
<p>You can customize your Qshell environment using three profile
files. Each profile file is a shell script that can contain any
Qshell command. <img src="delta.gif" alt="Start of change">
See the <a href="variable.htm">Variables</a> article
for the complete list of supported environment variables.
<img src="deltaend.gif" alt="End of change"></p>
<p><strong>Global profile file</strong></p>
<p>If the file /etc/profile exists, <strong>qsh</strong> runs it in
the current environment when you login. It is typically maintained
by an administrator to set system-wide defaults for all users. This file should be secured by
setting the public authority to read and execute.</p>
<p>Here is a sample /etc/profile file:</p>
<pre>
# Sample /etc/profile file
export PATH=/usr/bin:
</pre>
<strong>Profile file</strong>
<p>If the file .profile exists in the user's home directory,
<strong>qsh</strong> runs it in the current environment when you
login. It is used to customize your login environment.</p>
<p>Here is a sample .profile file.</p>
<pre>
# Sample .profile file
export ENV=$HOME/.qshrc
export PATH=$PATH:$HOME/bin
</pre>
<strong>Environment file</strong>
<p>If the file specified by the expansion of the <strong>
ENV</strong> variable exists, <strong>qsh</strong> runs it in the
current environment when starting an interactive shell. The
environment file is typically used to set aliases, define
functions, or set options for an interactive shell session.</p>
<p>Here is a sample environment file:</p>
<pre>
# Sample environment file
PS1='$PWD'
</pre>
</body>
</html>