How can I display a list of current environment variables and also recognized regular expressions....
Charlie Kravetz
cjk at teamcharliesangels.com
Fri May 2 02:51:20 UTC 2008
On Thu, 2008-05-01 at 15:41 -0400, John Toliver wrote:
> I'm looking for the equivalent of the "SET" command in windows. also
> if in windows if I typed something like "c:\copy *.* d:\" where can I
> find a list of "*.*" that linux recognizes. I'm trying to get the
> basics of scripting. I'm sorry I don't know any more useful ways of
> describing it.
>
<snip>
To get a list of environment variables that are set, i.e., "SET" in DOS
or Windows, use "set" without the quotes, in a terminal. This gives a
pretty big list, since the environment does not have the same
limitations in linux as DOS. I normally use
set > ~/Desktop/set-variables.text
which prints the variables to a file "set-variables.text" on my Desktop.
This way I can find them and view them with gedit.
good luck,
--
Charlie Kravetz
Linux Registered User Number 425914 [http://counter.li.org/]
Never let anyone steal your DREAM. [http://keepingdreams.com]
More information about the ubuntu-users
mailing list