Problem

In Hands-on Project 6-4, you had to use ./ before testscript because your current workin...

In Hands-on Project 6-4, you had to use ./ before testscript because your current working directory is not in your PATH environment variable. In this project, you view the contents of the PATH variable. Next, you add the current working directory to the PATH variable and run testscript without using the ./ characters.

To see the contents of the PATH variable:

1. Type echo $PATH and press Enter.

You see a list of directories. Notice that the path names are separated by colons (:).

To add the current working directory to the PATH variable:

1. Type PATH=$PATH:. and press Enter.

2. Type echo $PATH and press Enter. The dot (.) is now appended to the list.

3. You can now run scripts in your current working directory without typing the ./ characters before their names. Test this by typing testscript and pressing Enter. You see testscript execute, as in Figure 6-9.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search