LMLPHP后院

使用 set 查看环境变量

bash shell set 示例:

$ set
BASH=/usr/bin/bash
BASHOPTS=cmdhist:complete_fullquote:expand_aliases:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=()
BASH_ARGV=()
BASH_CMDS=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="4" [1]="3" [2]="46" [3]="1" [4]="release" [5]="x86_64-unknown-linux-gnu")
BASH_VERSION='4.3.46(1)-release'
COLUMNS=121
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DIRSTACK=()
EUID=1000
GROUPS=()
GTK_IM_MODULE=fcitx
HISTFILE=/home/may/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/home/may
HOSTNAME=may
HOSTTYPE=x86_64
IFS=$' \t\n'
LANG=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_TIME=en_US.UTF-8
LESS=-R
LINES=41
LOGNAME=may
LSCOLORS=Gxfxcxdxbxegedabagacad
MACHTYPE=x86_64-unknown-linux-gnu
MAIL=/var/spool/mail/may
MAILCHECK=60
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PAGER=less
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PIPESTATUS=([0]="0")
PPID=32410
PROMPT_COMMAND='printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
PS1='[\u@\h \W]\$ '
PS2='> '
PS3='> '
PS4='+ '
PWD=/home/may/work/code/repo/l
QT_IM_MODULE=fcitx
SHELL=/usr/bin/zsh
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
SHLVL=2
SSH_AGENT_PID=1735
SSH_AUTH_SOCK=/tmp/ssh-hrkXR0Y4BWmR/agent.1734
SSH_CLIENT='192.168.1.125 49262 22'
SSH_CONNECTION='192.168.1.125 49262 192.168.1.250 22'
SSH_TTY=/dev/pts/0
TERM=xterm-256color
UID=1000
USER=may
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_ID=c33
XMODIFIERS=@im=fcitx
ZSH=/home/may/.oh-my-zsh
_=
2024-12-31 01:45:20 1735580720 0.010186