Customizing the Qshell environment
Use these three profile files to customize your Qshell environment. Each profile file is a shell script that can contain any Qshell command.
See the Variables topic for the complete list of supported environment variables.
Global profile file
If the file /etc/profile exists, qsh 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.
Here is a sample /etc/profile file that defines a system-wide PATH variable for all users:
# Sample /etc/profile file export PATH=/usr/bin:.:/QOpenSys/usr/bin
If the file .profile exists in the user's home directory, qsh runs it in the current environment when you login. It is used to customize your login environment.
Here is a sample .profile file that defines the user's environment file and customizes the PATH variable to include a subdirectory under the user's home directory:
# Sample .profile file export ENV=$HOME/.qshrc export PATH=$PATH:$HOME/bin
If the file specified by the expansion of the ENV variable exists, qsh 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.
Here is a sample environment file:
# Sample environment file PS1='$PWD'
ADDENVVAR ENVVAR(PATH) VALUE('/usr/bin:.:/QOpenSys/usr/bin') LEVEL(*SYS)