# How Can I know the Julia path of the actual process?

**URL:** <https://discourse.julialang.org/t/how-can-i-know-the-julia-path-of-the-actual-process/1573>\
**Category:** General Usage\
**Created:** [January 18, 2017, 9:29pm UTC](https://discourse.julialang.org/t/how-can-i-know-the-julia-path-of-the-actual-process/1573 "2017-01-18T21:29:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diego\_Javier\_Zea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/diego_javier_zea/32/1858_2.png) [@Diego\_Javier\_Zea](https://discourse.julialang.org/u/Diego_Javier_Zea)\
**Post date:** [January 18, 2017, 9:29pm UTC](https://discourse.julialang.org/t/how-can-i-know-the-julia-path-of-the-actual-process/1573/1 "2017-01-18T21:29:08Z")

</div>

I was using `ENV["_"]` to reach the path to the julia binary. But this gives me problems because `ENV["_"]` is `/usr/bin/nohup` for `nohup julia`…

```julia
~$ julia -e 'println(ENV["_"])'
/usr/bin/julia
~$ nohup julia -e 'println(ENV["_"])'
nohup: se descarta la entrada y se añade la salida a «nohup.out»
~$ cat nohup.out 
/usr/bin/nohup

```

Is there a better way to know the actual Julia path?

Best,

---

<div class="post-metadata">

**Author:** ![greg\_plowman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg_plowman/32/8100_2.png) [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Post date:** [January 18, 2017, 10:06pm UTC](https://discourse.julialang.org/t/how-can-i-know-the-julia-path-of-the-actual-process/1573/2 "2017-01-18T22:06:28Z")

</div>

`JULIA_HOME` ?

`joinpath(JULIA_HOME, Base.julia_exename())` ?

---

<div class="post-metadata">

**Author:** ![Diego\_Javier\_Zea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/diego_javier_zea/32/1858_2.png) [@Diego\_Javier\_Zea](https://discourse.julialang.org/u/Diego_Javier_Zea)\
**Post date:** [January 18, 2017, 10:10pm UTC](https://discourse.julialang.org/t/how-can-i-know-the-julia-path-of-the-actual-process/1573/3 "2017-01-18T22:10:43Z")

</div>

Thanks! That is was I was looking for! 🙂
