env command - display the values of environment variables

The env command can be used to display the values of environment variables.

env

Here is a sample of the output result.

PERLBREW_SHELLRC_VERSION=0.88
MANPATH=/home/kimoto/perl5/perlbrew/perls/perl-5.28.0/man:/usr/kerberos/man:/usr/local/share/man:/usr/share/man/en:/usr/share/man
PERLBREW_VERSION=0.88
HOSTNAME=www7402u.sakura.ne.jp
PERLBREW_PERL=perl-5.28.0
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=119.243.98.202 48719 22
OLDPWD=/home/kimoto/labo
SSH_TTY=/dev/pts/0
USER=kimoto
LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib
 LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
PERLBREW_ROOT=/home/kimoto/perl5/perlbrew
MAIL=/var/spool/mail/kimoto
 PATH=/home/kimoto/perl5/perlbrew/bin:/home/kimoto/perl5/perlbrew/perls/perl-5.28.0/bin:/usr/lib/oracle/11.2/client64/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/kimoto/bin:/sbin:/usr/sbin:/usr/local/sbin
C_INCLUDE_PATH=/usr/include/oracle/11.2/client64
INPUTRC=/etc/inputrc
PWD=/home/kimoto/labo/perlzemilinux
LANG=en_US.UTF-8
PERLBREW_HOME=/home/kimoto/.perlbrew
SHLVL=1
HOME=/home/kimoto
PERLBREW_MANPATH=/home/kimoto/perl5/perlbrew/perls/perl-5.28.0/man
PERLBREW_PATH=/home/kimoto/perl5/perlbrew/bin:/home/kimoto/perl5/perlbrew/perls/perl-5.28.0/bin
LOGNAME=kimoto
CVS_RSH=ssh
SSH_CONNECTION=119.243.98.202 48719 59.106.185.196 22
SPVM_TEST_ENABLE_WARNINGS=1
LESSOPEN=|/usr/bin/lesspipe.sh %s
ORACLE_HOME=/usr/lib/oracle/11.2/client64
G_BROKEN_FILENAMES=1
_=/bin/env

What is an environment variable?

An environment variable is a shell variable that can be defined for each user environment.

Associated Information