How to modify the PATH variable and make it executable?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / swaroopa
use setenv command to set the path
eg: setenv PATH "/workingdir/"
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
What is the default ubuntu terminal?
How to debug the problems encountered in the shell script/program?
how do you write sql queries using shell script for eg:- we have databae table like EMPNO,ENAME,SAL,DEPTNO columns in EMP table how you display EMPNO,SAL FIELDS from emp in SHELL SCRIPT please explain with an example
How would you replace the n character in a file with some xyz?
What lives in a shell?
What does path stand for?
How to write a function?
how will you find the total disk space used by a specific user?
What language is used in terminal?
c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?