Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    #echo $myVar

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

  2. #2
    Join Date
    May 2004
    arch linux
    Welcome to the forums!

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

Posting Permissions

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