24.07.2018 Views

Bash-Beginners-Guide

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Bash</strong> <strong>Guide</strong> for <strong>Beginners</strong><br />

SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass<br />

SSH_AUTH_SOCK=/tmp/ssh-XXmhQ4fC/agent.22106<br />

START_WM=twm<br />

TERM=xterm<br />

TYPE=type<br />

USERNAME=franky<br />

USER=franky<br />

_=/usr/bin/printenv<br />

VISUAL=vi<br />

WINDOWID=20971661<br />

XAPPLRESDIR=/nethome/franky/app-defaults<br />

XAUTHORITY=/nethome/franky/.Xauthority<br />

XENVIRONMENT=/nethome/franky/.Xdefaults<br />

XFILESEARCHPATH=/usr/X11R6/lib/X11/%L/%T/%N%C%S:/usr/X11R6/lib/X11/%l/%T/%N%C%S:/usr/X11R6/lib/X1<br />

XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB<br />

XMODIFIERS=@im=none<br />

XTERMID=<br />

XWINHOME=/usr/X11R6<br />

X=X11R6<br />

YACC=bison -y<br />

3.2.1.2. Local variables<br />

Local variables are only available in the current shell. Using the set built-in command without any options<br />

will display a list of all variables (including environment variables) and functions. The output will be sorted<br />

according to the current locale and displayed in a reusable format.<br />

Below is a diff file made by comparing printenv and set output, after leaving out the functions which are also<br />

displayed by the set command:<br />

franky ~> diff set.sorted printenv.sorted | grep "

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!