Results 1 to 5 of 5

Thread: Environment Variables

  1. #1
    Junior Member
    Join Date
    Sep 2006
    Answers
    23

    Environment Variables

    What are environment variables in UNIX operating system. How to use them.Someone kindly give a example also.


  2. #2
    Expert Member
    Join Date
    Sep 2006
    Answers
    477

    Re: Environment Variables

    Environment variable - as the name suggests - is the variable that resides in Unix System Environment.
    This variable - once dfefined- can be accessed by any script/program/application which runs in the unix box.

    For example let us say we have a dedicated FTP location to which we need all report files to be sent. We can declare FTP_HOME as an environment variable and use this as $FTP_HOME inside any script which runs in the UNIX box.

    cheers,
    Kalayama

    [COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]

    Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"

  3. #3
    Junior Member
    Join Date
    Sep 2006
    Answers
    23

    Re: Environment Variables

    Can one change the value of the Environment Variable after it is defined.I do not have idea on this and what to know about this. Someone help me!!


  4. #4
    Expert Member
    Join Date
    Sep 2006
    Answers
    477

    Re: Environment Variables

    Definitely the value of the environment variable can be changed after it is defined.

    - Kalayama

    [COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]

    Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"

  5. #5
    Contributing Member
    Join Date
    Dec 2006
    Answers
    39

    Re: Environment Variables

    Quote Originally Posted by nehalshah View Post
    What are environment variables in UNIX operating system. How to use them.Someone kindly give a example also.
    Environmental variables global variables which can used all subshells.
    they r defined using command

    $export Global_Variable="value"

    now this Global_Variable can be used in all sub shell which u run in the same terminal.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact