What is Path variable?What is its use?



What is Path variable?What is its use?..

Answer / guest

PATH is an environment variable.
It contains the sequence of paths seperated by colons(:)
when we enter commands on the prompt the shell first checks
that coorresponding program to execute in those paths
specified in PATH variable.

We can print that sequnece by typing
echo $PATH

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More Shell Script Interview Questions

What are the different types of variables used in shell script?

0 Answers  


What is meant by $1 in shell script?

0 Answers  


What is in a script?

0 Answers  


How would you compare the strings in a shell script?

0 Answers  


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

0 Answers  


Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.

0 Answers  


How are shells born?

0 Answers  


I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?

0 Answers  


How to declare functions in unix shell script?

4 Answers  


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

0 Answers   Wells Fargo,


What is the basic difference you find between a shell script and perl?

3 Answers   Yahoo,


What does $# stand for?

3 Answers   IBM,


Categories