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 ...
  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 online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,090
    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

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

Posting Permissions

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