UNIX- Environment Variable

1.How to set\unset an environment variable in unix

ENVIRONMENT variables are set using the setenv command, displayed using the printenv or env commands, and unset using the unsetenv command.

To show all values of these variables, type

% printenv | less

2.what is the difference between PATH and path in UNIX

In general, environment and shell variables that have the same name (apart from the case) are distinct and independent in Unix.

PATH represents an environment variable  where as path represents a shell variable.



0 Responses to “UNIX- Environment Variable”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 98 other followers

Blog Stats...

  • 111,883 hits

%d bloggers like this: