# Start ROOT without having to source thisroot.sh

**URL:** <https://root-forum.cern.ch/t/start-root-without-having-to-source-thisroot-sh/47624>\
**Category:** Newbie\
**Created:** [November 11, 2021, 11:40am UTC](https://root-forum.cern.ch/t/start-root-without-having-to-source-thisroot-sh/47624 "2021-11-11T11:40:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mzriu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/e56c9b/32.png) [@mzriu](https://root-forum.cern.ch/u/mzriu)\
**Post date:** [November 11, 2021, 11:40am UTC](https://root-forum.cern.ch/t/start-root-without-having-to-source-thisroot-sh/47624/1 "2021-11-11T11:40:10Z")

</div>

Hi,

I would like to know if there is a way to avoid sourcing thisroot.sh everytime I want to launch ROOT ? I am pretty new to Linux so the informations on the Install page of ROOT are not very clear to me…

I have the latest ROOT version and I am using Zorin OS which is Ubuntu based.

Thanks for reading me !

---

<div class="post-metadata">

**Author:** ![jalopezg](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jalopezg/32/25844_2.png) [@jalopezg](https://root-forum.cern.ch/u/jalopezg)\
**Post date:** [November 11, 2021, 11:53am UTC](https://root-forum.cern.ch/t/start-root-without-having-to-source-thisroot-sh/47624/2 "2021-11-11T11:53:23Z")

</div>

Hi @mzriu,

I am assuming that you installed ROOT either building from source or using pre-compiled binaries. If that’s the case, (and citing from [Installing ROOT - ROOT](https://root.cern/install/)),

> To avoid having to `source thisroot.sh` every time one needs to use ROOT, it is typical to add the command to `.bashrc`, `.profile` or analogous configuration files. Note, however, that sourcing `thisroot.sh` might interfere with ROOT versions installed with different methods.

Cheers,  
J.

---

<div class="post-metadata">

**Author:** ![mzriu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/e56c9b/32.png) [@mzriu](https://root-forum.cern.ch/u/mzriu)\
**Post date:** [November 11, 2021, 11:58am UTC](https://root-forum.cern.ch/t/start-root-without-having-to-source-thisroot-sh/47624/3 "2021-11-11T11:58:15Z")

</div>

Hi @jalopezg

Thanks for your answer ! What you cited is “not very clear to me” informations I was talking about 😅

Can you tell me what I am supposed to write in say my “.bashrc” file ?

Best,  
Marius

---

<div class="post-metadata">

**Author:** ![jalopezg](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jalopezg/32/25844_2.png) [@jalopezg](https://root-forum.cern.ch/u/jalopezg)\
**Post date:** [November 11, 2021, 12:04pm UTC](https://root-forum.cern.ch/t/start-root-without-having-to-source-thisroot-sh/47624/4 "2021-11-11T12:04:44Z")

</div>

Hi @mzriu,

Assuming that you use `bash` as a shell (most likely true), you can add a line at the end of the `.bashrc` file as follows:

```bash
source /path/to/root/install_dir/bin/thisroot.sh

```

The `.bashrc` file is located in your home directory. The changes should be effective the next time you run `bash`, e.g. a new window of your terminal emulator.

Cheers,  
J.

---

<div class="post-metadata">

**Author:** ![mzriu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/e56c9b/32.png) [@mzriu](https://root-forum.cern.ch/u/mzriu)\
**Post date:** [November 11, 2021, 12:08pm UTC](https://root-forum.cern.ch/t/start-root-without-having-to-source-thisroot-sh/47624/5 "2021-11-11T12:08:57Z")

</div>

Thanks a lot this will save me much time !
