1. Introduction to profile
/etc/profile or /system/etc/profile is a file for setting environment variables on the qnx side. This file is applicable to all users, and it can be used in the following situations:
- Set the HOMENAME and SYSNAME environment variables
- Set the PATH environment variable
- Set the TMPDIR environment variable (/tmp)
- Set environment variables such as PCI and IFS_BASE, etc.
An example of file content is as follows:
/etc/profile
exprot TERM=xxx
exprot HOME=xxx
exprot SHELL=xxx
exprot TMPDIR=xxx
exprot PATH=xxx
exprot LD_LIBRARY_PATH=xxx
exprot GRAPHICS_ROOT=xxx
exprot DISPLAY_CATALOG_PATH=xxx
setconf _CS_CONFIG_PATH
exprot LOG_TO_CONSOLE=xxx
exprot ifs_base=xxx
exprot sysbase=xxx
exprot PCI_SLOG_MODULE=xxx
exprot PCI_BASE_VERBOSITY=xxx
exprot PCI_SERVER_BUSCFG_MODULE=xxx
exprot PCI_HW_MODULE=xxx
exprot PCI_CAP_MODULE_DIR=xxx
exprot QAICLIB=xxx
exprot TERMINFO=xxx
exprot BOOTES_HOME_DIR=xxx
ENABLE_FDE=xxx
umask xxx
ENABLE_INPLACE_FDE=xxx
Two, env profile
env is used to view and set environment variables. If executing the env tool does not