LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to launch clean bash session (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-launch-clean-bash-session-877002/)

locus84 04-25-2011 12:36 PM

How to launch clean bash session
 
how to launch a non-login bash session that doesn't inherit its parents environmental variables, and doesn't source /etc/bashrc?

colucix 04-25-2011 01:02 PM

Maybe using something like this:
Code:

env -i bash --noprofile --norc
see man env and man bash for details about the mentioned options. BTW we could suggest a better solution if you provide more details about what you're trying to accomplish. Hope this helps.

locus84 04-25-2011 02:21 PM

Thanks
 
Thank you! I just needed a clean environment to test a program that sets up the environment. I couldn't change the rc files under /etc since I am not the admin.


All times are GMT -5. The time now is 10:47 AM.