What is the search path for a shell? What is the name of the shell variable that is used to maintain the search path for the Bourne Again and TC shell? Where (in which file) is this variable typically located? What is the search path set to in your environment? How did you find out? Set your search path so that your shell searches your current and your ~/bin directories while looking for a command that you type. In what order does your shell search the directories in your search path? Why?

What will be an ideal response?


The search path for a shell is the sequence of directories that the shell searches (one by one) to locate an external command. The Bourne Again shell use the variable called PATH for maintaining its search path and the TC shell uses the variable path for the same purpose.
You can use the echo $PATH command in Bash and echo $path command in the TC shell to determine the search path for your environment. The search path in our environment is shown in the output of these commands, as shown below.

Computer Science & Information Technology

You might also like to view...

When a reference variable refers to an object that is in an inheritance hierarchy and a method of the object is invoked, how does Java determine which version of the method to use?

What will be an ideal response?

Computer Science & Information Technology

The command [Alt-c] converts the word following the cursor to:

a: upper case b: lower case c: capitalized d: bold e: none of the above

Computer Science & Information Technology

Two-dimensional arrays are never actually required in order to achieve a useful program.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Match each item with a statement below.

A. can span more than one hard drive B. used to enhance the amount of RAM in a system C. rearranges files on the drive into as few segments as possible D. an extra copy of a data or software file that you can use if the original file becomes damaged or destroyed E. a volume that can be accessed by way of a folder on another volume so that the folder has more available space F. searches for bad sectors on a volume and recovers the data from them if possible G. a hidden file stored in the root directory of drive C H. can be partitioned and formatted as a stand-alone hard drive I. snapshots of the system and include Windows system files that have changed J. the overall structure an OS uses to name, store, and organize files on a drive

Computer Science & Information Technology