# How can I view the whole command history?

**URL:** https://discourse.julialang.org/t/how-can-i-view-the-whole-command-history/17987
**Category:** VS Code
**Created:** [November 25, 2018, 6:16pm UTC](https://discourse.julialang.org/t/how-can-i-view-the-whole-command-history/17987 "2018-11-25T18:16:23Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Juan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juan/32/7657_2.png) [@Juan](https://discourse.julialang.org/u/Juan)
#### Post date: [November 25, 2018, 6:16pm UTC](https://discourse.julialang.org/t/how-can-i-view-the-whole-command-history/17987/1 "2018-11-25T18:16:23Z")

</div>

Hello.

How can I view the whole list of commands used on Visual Studio Code + Julia?  
I’m not able to find that option.  
I can just use the arrows to slowly navigate through than commands on the REPL.

---

<div class="post-metadata">

### Author: ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)
#### Post date: [November 25, 2018, 7:26pm UTC](https://discourse.julialang.org/t/how-can-i-view-the-whole-command-history/17987/2 "2018-11-25T19:26:23Z")

</div>

CRTL+R should let you search through the history. Type something and up-arrow should only show stuff which started with those letters. The full history is in the `~/.julia_history` file, at least for Julia 0.6.

---

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [November 26, 2018, 1:01am UTC](https://discourse.julialang.org/t/how-can-i-view-the-whole-command-history/17987/3 "2018-11-26T01:01:09Z")

</div>

It moved to `~/.julia/logs/repl_history.jl` in 1.0.

---

<div class="post-metadata">

### Author: ![Juan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juan/32/7657_2.png) [@Juan](https://discourse.julialang.org/u/Juan)
#### Post date: [November 26, 2018, 1:20am UTC](https://discourse.julialang.org/t/how-can-i-view-the-whole-command-history/17987/4 "2018-11-26T01:20:15Z")

</div>

on my Spanish keyboard Ctrl+R doesn’t show the history.  
It shows this box

 ![](https://global.discourse-cdn.com/julialang/original/3X/d/b/db07458122c4a7a12d25416dd3719edf8352f4cb.png)

---

<div class="post-metadata">

### Author: ![Juan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juan/32/7657_2.png) [@Juan](https://discourse.julialang.org/u/Juan)
#### Post date: [November 26, 2018, 1:21am UTC](https://discourse.julialang.org/t/how-can-i-view-the-whole-command-history/17987/5 "2018-11-26T01:21:13Z")

</div>

> [@StefanKarpinski](#):
>
> repl\_history.jl

And how can you view its content from VS Code?

After you mentioned repl\_history I’ve found this question on stackoverflow

> <https://stackoverflow.com/questions/44470484/what-is-the-command-to-get-the-command-history-in-atom-editor-console-window>

It seems we don’t have a dedicated window on VS Code to view the history as we do on RStudio or other applications.

---

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [November 26, 2018, 2:34am UTC](https://discourse.julialang.org/t/how-can-i-view-the-whole-command-history/17987/6 "2018-11-26T02:34:56Z")

</div>

You can just open the file. It’s a plain text file.

---

<div class="post-metadata">

### Author: ![Juan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juan/32/7657_2.png) [@Juan](https://discourse.julialang.org/u/Juan)
#### Post date: [November 26, 2018, 2:43am UTC](https://discourse.julialang.org/t/how-can-i-view-the-whole-command-history/17987/7 "2018-11-26T02:43:21Z")

</div>

You know I don’t mean that.

---

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [November 26, 2018, 2:49am UTC](https://discourse.julialang.org/t/how-can-i-view-the-whole-command-history/17987/8 "2018-11-26T02:49:49Z")

</div>

I don’t—that’s how I view it. I also don’t use an IDE.

---

<div class="post-metadata">

### Author: ![Gus\_Hart](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gus_hart/32/6987_2.png) [@Gus\_Hart](https://discourse.julialang.org/u/Gus_Hart)
#### Post date: [January 30, 2019, 3:06am UTC](https://discourse.julialang.org/t/how-can-i-view-the-whole-command-history/17987/9 "2019-01-30T03:06:39Z")

</div>

Thanks, this was helpful. It’s nice to be able to open the file directly. Still, sometimes I wish there was something equivalent to bash shell’s `history` command to just list the history in the REPL.

---

<div class="post-metadata">

### Author: ![tkoolen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkoolen/32/1603_2.png) [@tkoolen](https://discourse.julialang.org/u/tkoolen)
#### Post date: [January 30, 2019, 5:56am UTC](https://discourse.julialang.org/t/how-can-i-view-the-whole-command-history/17987/10 "2019-01-30T05:56:06Z")

</div>

You might like `@searchhistory` from [https://github.com/tkf/InteractiveCodeSearch.jl](https://github.com/tkf/InteractiveCodeSearch.jl).

---

<div class="post-metadata">

### Author: ![Wikunia](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wikunia/32/2180_2.png) [@Wikunia](https://discourse.julialang.org/u/Wikunia)
#### Post date: [December 3, 2019, 7:35pm UTC](https://discourse.julialang.org/t/how-can-i-view-the-whole-command-history/17987/11 "2019-12-03T19:35:59Z")

</div>

would be nice to just have a `history` command in `Base` or not?

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)
#### Post date: [December 4, 2019, 3:36pm UTC](https://discourse.julialang.org/t/how-can-i-view-the-whole-command-history/17987/12 "2019-12-04T15:36:16Z")

</div>

> [@Is there an easy way to get at the history of REPL input?](https://discourse.julialang.org/t/is-there-an-easy-way-to-get-at-the-history-of-repl-input/18025/6):
>
> I think this will serve nicely: REPL.find\_hist\_file(). Then all that is required is a little macro (or function) to spit out the contents of the history file… Perhaps like this, except a lot more succinct: InteractiveUtils.less(REPL.find\_hist\_file()) Maybe this? macro history() InteractiveUtils.less(REPL.find\_hist\_file()); end
