How to modify the PATH variable and make it executable?

Answer Posted / shailendra kumar tiwary

we can set PATH by using export PATH command.
ex:-
PATH=/opt/j2sdk1.4.2_04/bin:............
export PATH

and to make it executable we can set the same
in ".bash_profile".

To execute it ". .bash_profile"

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are script files?

551


What is echo $shell?

624


What is computer cli?

499


What is ms powershell?

583


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

1684






What is a batch file used for?

562


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.

2176


Write a command sequence to find all the files modified in less than 2 days and print the record count of each.

935


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.

2031


How to find duplicate record in file using shell script?

849


How do I read a .sh file?

532


Please give me example of " at command , contrab command " how to use

2325


write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.

2230


What can you do with powershell?

609


What is shift command in shell script?

527