change from julia mode to shell mode

Viewed 408

I am using Julia 1.4.2. my version info is,

Julia Version 1.4.2 Commit 44fa15b150* (2020-05-23 18:35 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-8.0.1 (ORCJIT, skylake)

How to change from Julia command mode to Shell mode in julia?

I want to perform os commands such as ls pwd etc.,

2 Answers

Use semicolon (;). You can read about different shell modes here.

Like the other answer say you use the semicolon ;.

Note that shell mode (contrary to the package manage mode) is not sticky - that is whenever you execute command you are back in Julia REPL. Sometimes when I want to execute many command line command a good workflow is to type ;bash (or ;cmd on Windows), do all your stuff and then come back to Julia by executing exit - this works quite well and I found it to be most convenient.

Related