By using this site, you acknowledge that you have read and understand our Cookie policy, Privacy policy and Terms .
access_time 11 months ago visibility9 comment 0 languageEnglish

Environment variables are commonly used in many frameworks or programs.

In bash, to list environment variables, you can use env command. 

To list a certain environment variable, you can use ${EnvironmentVariableName}.

Code snippet

env
echo ${USER}
echo ${SHELL}
info Last modified by Raymond at 11 months ago * This page is subject to Site terms.

More from Kontext

local_offer hadoop local_offer shell

visibility 18
thumb_up 0
access_time 5 months ago

Hadoop provides a number of CLIs. hadoop job command can be used to retrieve running job list.

You can also use YARN resource manager UI to view the jobs too.

open_in_new View open_in_new Code snippets

local_offer hadoop local_offer shell

visibility 18
thumb_up 0
access_time 5 months ago

Hadoop provides a number of CLIs that can be used to perform many tasks/activities. This code snippet shows you how to check file/folder size in HDFS.

open_in_new View open_in_new Code snippets

local_offer hadoop local_offer shell

visibility 18
thumb_up 0
access_time 5 months ago

The following code snippet shows how to list and kill Hadoop jobs including (MapReduce and YARN jobs).

open_in_new View open_in_new Code snippets

info About author

Dark theme mode

Dark theme mode is available on Kontext.

Learn more arrow_forward
Kontext Column

Kontext Column

Created for everyone to publish data, programming and cloud related articles. Follow three steps to create your columns.

Learn more arrow_forward
info Follow us on Twitter to get the latest article updates. Follow us