Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to modify the PATH variable and make it executable?

Answers were Sorted based on User's Feedback



How to modify the PATH variable and make it executable?..

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

How to modify the PATH variable and make it executable?..

Answer / swaroopa

use setenv command to set the path

eg: setenv PATH "/workingdir/"

Is This Answer Correct ?    1 Yes 0 No

How to modify the PATH variable and make it executable?..

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

Post New Answer

More Shell Script Interview Questions

How to find all the files modified in less than 3 days and save the record in a text file?

0 Answers  


How do you find out What is your shell?

0 Answers  


what are command line arguments? what is the need of those?

1 Answers   Flipkart,


Can you write a script to portray how set –x works?

0 Answers  


determine the output of the following command: echo ${new:-variable}

0 Answers  


write a scwipt that a) takes exactly one argument, a directory name. b) if the number of argument is more or less than one,print a usage message c) if the argument is not adirectory, print another message d) for the given directory, print the five biggest files and the five files that were most recently modified. e) save the output to a file called q2output.

2 Answers  


Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?

0 Answers   TCS,


Explain about debugging?

0 Answers  


What is the command to find out users on the system?

0 Answers  


What are the various stages of a linux process it passes through?

0 Answers  


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

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  


Categories