What is Path variable?What is its use?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how you Automate your application using Shell scripting.

2079


What is the use of echo in shell script?

793


How to get script name inside a script?

773


State the advantages of shell scripting?

845


What is sed in shell script?

782


What is .sh file in mac?

780


Is cmd a shell?

805


Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.

1048


Suppose you execute a command using exec, what will be the status of your current process in the shell?

828


How to find duplicate record in file using shell script?

1089


How can I send a mail with a compressed file as an attachment?

798


What is a shell script in windows?

801


Explain about gui scripting?

860


What will happen to my current process when I execute a command using exec?

765


Why are shell scripts used?

838