printenv
Print values of all or specific environment variables. More information: <https://www.gnu.org/software/coreutils/printenv>.
Install
- All systems
-
curl cmd.cat/printenv.sh
- Debian
-
apt-get install coreutils
- Ubuntu
-
apt-get install coreutils
- Alpine
-
apk add coreutils
- Arch Linux
-
pacman -S coreutils
- Kali Linux
-
apt-get install coreutils
- CentOS
-
yum install coreutils
- Fedora
-
dnf install coreutils
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install coreutils
- OS X
-
brew install coreutils
- Raspbian
-
apt-get install coreutils
- Dockerfile
- dockerfile.run/printenv
- Docker
-
docker run cmd.cat/printenv printenv
powered by Commando
Print values of all or specific environment variables. More information: <https://www.gnu.org/software/coreutils/printenv>.
-
Display key-value pairs of all environment variables:
printenv
-
Display the value of a specific variable:
printenv HOME
-
Display the value of a variable and end with NUL instead of newline:
printenv --null HOME
© tl;dr; authors and contributors