How to modify the PATH variable and make it executable?

Answer Posted / kaustubh

In shell we can set any env variables in .bashrc file,
.bash_profile file in the user directory or fin /etc/bashrc

by setting variable name PATH(here)
and then export
example

PATH=$home/bin/
export PATH

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I read a .sh file?

746


What exactly is a shell?

792


How to check if the previous command was run successfully?

776


how will you find the total disk space used by a specific user?

773


What is awk in shell script?

951


How to set an array in linux?

791


Explain about sourcing commands?

816


What is eval in shell script?

883


What is the equivalent of a file shortcut that we have a window on a linux system?

817


What is bash used for?

753


What's the difference between scripting and coding?

800


Why is shell scripting important?

747


How does shell scripting work?

830


What is the meaning of $1 in shell script?

815


How will you connect to a database server from linux?

737