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 make userdefined variables to available for all
other shells?

Answers were Sorted based on User's Feedback



How to make userdefined variables to available for all other shells?..

Answer / guest

By exporting the variable

export VAR=value_of_the_variable

Is This Answer Correct ?    2 Yes 0 No

How to make userdefined variables to available for all other shells?..

Answer / biswaranjan

sorry the above ans ps1 is wrong by mistaken i sent it

Is This Answer Correct ?    1 Yes 0 No

How to make userdefined variables to available for all other shells?..

Answer / asit

for Global declaration::
setenv x 10
setenv str "test"
for local declaration::
set a = 10
set s = "test"

Is This Answer Correct ?    0 Yes 0 No

How to make userdefined variables to available for all other shells?..

Answer / biswaranjan

in "PS1" environment variable

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Shell Script Interview Questions

What are the different types of shell scripting?

0 Answers  


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

0 Answers  


How do I open a jshell in cmd?

0 Answers  


How will you emulate wc –l using awk?

0 Answers  


How to take input values from the user?

4 Answers  


What are the different commands available to check the disk usage?

0 Answers  


What is the use of "test" command?

2 Answers  


What does echo mean in scripting?

0 Answers  


How to group the commands in shell scripting?

2 Answers   Polaris,


What is shell prompt?

0 Answers  


How would you replace the n character in a file with some xyz?

7 Answers  


Where are cowrie shells found?

0 Answers  


Categories