Environment Variables

SHELL

The current shell in use.

printenv SHELL
/bin/bash

HOME

The path to the user’s home directory.

printenv HOME
/home/kuga

PWD

The path to the current directory.

printenv PWD
/home/kuga

USER

The current user.

printenv USER
kuga

PATH

The path where executable programs are searched, separated by colons.

printenv PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

SHLVL

The level of the shell, starting from 1.

printenv SHLVL
1