# How to save both command history and system outputs automatically?

**URL:** <https://discourse.julialang.org/t/how-to-save-both-command-history-and-system-outputs-automatically/6715>\
**Category:** General Usage\
**Created:** [October 27, 2017, 12:30am UTC](https://discourse.julialang.org/t/how-to-save-both-command-history-and-system-outputs-automatically/6715 "2017-10-27T00:30:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BVPs](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bvps/32/2190_2.png) [@BVPs](https://discourse.julialang.org/u/BVPs)\
**Post date:** [October 27, 2017, 12:30am UTC](https://discourse.julialang.org/t/how-to-save-both-command-history-and-system-outputs-automatically/6715/1 "2017-10-27T00:30:57Z")

</div>

We know that ~/.julia\_history file saves all the commands we entered in all of our julia sessions. However, it does not save the actual outputs returned from julia. I want to save the whole session sequence both input commands and the system outputs like what a MATLAB diary file does.  
I googled it, and found various packages such as PrintLog.jl (only saves system printouts done by the commands `println` and `print`) and Memento.jl, MicroLogging.jl, Lumberjack.jl (saves warning, errors, etc. separately).  
I also saw a posting saying that using IJulia notebook could save the whole julia session.  
However, I want to do this via simple REPL sessions or via Atom/Juno IDE sessions. Is there any simpler way to save both the input command sequences and the system outputs?  
Thanks a lot!  
BVPs
