December 2018
Beginner to intermediate
500 pages
12h 10m
English
The shell mode is used to switch to a command-line interface similar to the system shell, for directly executing OS commands. To enter it, input a semicolon ; at the very beginning of the julian prompt:
julia> ;
Upon typing ; the prompt changes (in place) to shell>:
Now we can execute system-wide commands directly, without the need to wrap them in Julia code. This will list the last ten lines of your repl_history.jl file. This file is used by Julia to keep a history of the commands executed in the REPL, so your output will be different from mine:
julia> using REPLshell> tail -n 10 ~/.julia/logs/repl_history.jlIO# time: 2018-09-02 ...
Read now
Unlock full access