top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How do you set environment variable which will be accessible form sub shell?

+3 votes
1,227 views
How do you set environment variable which will be accessible form sub shell?
posted Dec 14, 2015 by Mohammed Hussain

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
I am not sure what u are looking but seems u need export command something like
export LD_LIBRARY_PATH=<path>
Mention in ~/.bashrc

1 Answer

0 votes

By using export command, for example export count=1 will be available on all sub shell.

answer Dec 15, 2015 by Manikandan J
...