Find the answer to your Linux question:
Results 1 to 2 of 2
Explain what the PATH environment variable is. Include the following points: - In what file is the PATH variable usually set? - Purpose of that variable - Content of that ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    2

    shell scripts 02


    Explain what the PATH environment variable is. Include the following points:
    - In what file is the PATH variable usually set?
    - Purpose of that variable
    - Content of that variable

    Consider the following scenario:
    [gilles@sit-146 bin]$ echo $myVar
    [gilles@sit-146 bin]$ myVar=”This is a string”
    [gilles@sit-146 bin]$ echo $myVar
    This is a string
    [gilles@sit-146 bin]$ myVar=”$myVar . this part has just been added”
    [gilles@sit-146 bin]$ cat test.sh
    #!/bin/bash
    #echo $myVar

    Explain what will be displayed when you run the ./test.sh command? (Assume it has the execute bit set so that it runs).

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Welcome to the forums!

    Sorry, but this looks like homework and it's against the forums rules to post those kind of questions:

    http://www.linuxforums.org/forum/lin...ums-rules.html
    oz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •