SylixOS environment variables

Environment variables (environment variables) is a list of key-value pairs (“key = value”), each key-value pair is an environment variable, divided into environment variable name and environment variable value, the essence of both are all strings. Environment variables are used to provide a set of dynamic variable parameters for the system. The system provides unified methods for reading, writing, storing, and synchronizing, which can be accessed through code programs or shell commands. The role of a certain environment variable and how to analyze it are determined by the program that uses the environment variable. For example, TZ is used to set the system time zone.

In the Shell environment of SylixOS, a simple and easy-to-use environment variable function is implemented. The basic environment variables and their default values are as follows:

[root@sylixos:/root]# vars
variable show >>

       VARIABLE REF VALUE
-------------------- ------------------------------ -----------------------
TERM_PS_COLOR
TERMCAP /etc/termcap
TERM vt100
LUA_CPATH ?.so;/usr/local/lib/lua/?.so;/usr/lib/lua/?.so;/lib/lua/?.so
LUA_PATH ?.lua;/usr/local/lib/lua/?.lua;/usr/lib/lua/?.lua;/lib/lua/?.lua
VPROC_MODULE_SHOW 0
VPROC_EXIT_FORCE 0
LOGINBL_REP 3
LOGINBL_TO 120
DEBUG_CRASHTRAP 0
DEBUG_CPU -1
PATH_LOCALE /usr/share/locale
LC_ALL
LANG C
LD_LIBRARY_PATH /usr/lib:/lib:/usr/local/lib
PATH /usr/bin:/bin:/usr/pkg/sbin:/sbin:/usr/local/bin
NFS_CLIENT_PROTO udp
NFS_CLIENT_AUTH AUTH_UNIX
SYSLOGD_HOST 0.0.0.0:514
KERN_FLOAT 1
SO_MEM_DIRECT 0
SO_MEM_PAGES 8192
TSLIB_CALIBFILE /etc/pointercal
TSLIB_TSDEVICE /dev/input/touch0
MOUSE /dev/input/mouse0:/dev/input/touch0
KEYBOARD /dev/input/keyboard0
STARTUP_WAIT_SEC 1
TZ CST-8:00:00
TMPDIR /tmp/
LICENSE SylixOS license: Commercial & GPL.
VERSION 2.1.6
SYSTEM SylixOS kernel version: 2.1.6 Code name: Enterprise

[root@sylixos:/root]#

environment variable default value Function Description
TERM_PS_COLOR empty Command prompt color eg. “01;32”
TERMCAP /etc/termcap BSD terminal escape
TERM vt100 Terminal type, peer software works
LUA_CPATH ?.so;/usr/local/lib/lua/?.so;/usr/lib/lua/? .so;/lib/lua/?.so LUA language C library search path
LUA_PATH ?.lua;/usr/local/lib/lua/?.lua;/usr/lib/lua/?.lua;/lib/lua/ ?.lua LUA language running search path
VPROC_MODULE_SHOW 0 Whether to output process start printing module information
VPROC_EXIT_FORCE 0 Whether the main thread exits to automatically delete the child thread
LOGINBL_REP 3 If it appears several times in a row, it will be added to the blacklist td>
LOGINBL_TO 120 Network Login blacklist refresh time, unit second
DEBUG_CRASHTRAP 0 Whether to crashtrap all processes
DEBUG_CPU – 1 Whether to lock the called object to a CPU
PATH_LOCALE /usr/share/locale Note: You need to copy the UTF-8 directory here from the BSD system
LC_ALL empty This variable is not recommended
LANG C System default language is C language
LD_LIBRARY_PATH /usr/lib:/lib :/usr/local/lib System dynamic library search path, can have multiple values, separated by colons, the sequence determines the search order of the system search
PATH /usr/bin:/bin:/usr/pkg/sbin:/sbin: /usr/local/bin Application search path, can have multiple values, separated by colons, the sequence determines the search order of the system search
NFS_CLIENT_PROTO udp NFS uses udp protocol by default
NFS_CLIENT_AUTH AUTH_UNIX NFS uses auth_unix by default, AUTH_NONE corresponds to windows client, AUTH_UNIX corresponds to UNIX system client
SYSLOGD_HOST 0.0.0.0:514 syslog server address
KERN_FLOAT 1 Whether the kernel supports floating-point format, 0 does not support 1 supports
SO_MEM_DIRECT 0 Whether the application is allowed to use page fault interrupt allocation Memory, 0 not allowed, 1 allowed
SO_MEM_PAGES 8192 Application initial heap memory space pages
TSLIB_CALIBFILE /etc/pointercal Touch screen calibration file
TSLIB_TSDEVICE /dev/input/touch0 Touch screen calibration associated device
MOUSE /dev/input/mouse0:/dev/input/touch0 mouse device file, There can be more than one, separated by colon
KEYBOARD /dev/input/keyboard0 Keyboard device files, there can be multiple, colon separated
STARTUP_WAIT_SEC 1 Delay time for executing startup.sh, in seconds, range 0~10
TZ CST-8:00:00 system time zone Configuration, the default is East 8 District CST-8:00:00, which is Beijing time.
TMPDIR /tmp/ To cooperate with the temporary folder of stdio, it should end with “/”
LICENSE SylixOSlicense:Commercial & amp;GPL. System license, the kernel comes with generation
VERSION 2.1.6 System version, built-in kernel
SYSTEM SylixOSkernelversion:2.1.6Codename:Enterprise system information , the kernel comes with generated