2008-07-11-quick-access-to-your-environment-variables.md 781 Bytes
Newer Older
Danesh Manoharan's avatar
Danesh Manoharan committed
1
2
---
title: quick access to your environment variables
3
author: Danesh Manoharan
Danesh Manoharan's avatar
Danesh Manoharan committed
4
5
6
7
8
9
10
11
12
date: 2008-07-11T06:54:20+00:00
robotsmeta:
  - index,follow
pvc_views:
  - 1755
dsq_thread_id:
  - 900011390

---
13
Here's a quick way to access your environment variables from the CLI.
Danesh Manoharan's avatar
Danesh Manoharan committed
14

15
User the "%" key in conjunction with your "<tab>" key to auto complete your environment variables.
Danesh Manoharan's avatar
Danesh Manoharan committed
16
17
18
19
20
21
22
23

`pandora:/ # echo $J <TAB><br />
$JAVA_BINDIR  $JAVA_HOME    $JAVA_ROOT    $JDK_HOME     $JRE_HOME<br />
pandora:/ # echo $JAVA_ <TAB><br />
$JAVA_BINDIR  $JAVA_HOME    $JAVA_ROOT<br />
pandora:/ # echo $JAVA_HOME<br />
/usr/lib/jvm/java`

24
The traditional way is to "`env | grep [variable name]`"