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.
- 05-20-2008 #1Just 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).
- 05-20-2008 #2forum.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.htmloz



