Linux Terminal

The CoCalc terminal allows you to run Linux programs on the command-line in your browser.

To get started, create a “Terminal” file in the “Files” listing or in “+ New”. Such files end in .term and open up in a Frame Editor. Inside of each panel a terminal session starts up and you can issue commands.

New to Linux? Find out more about the Linux command line at the Linux Tutorial, which is one of several introductory topics at Ryan’s Tutorials.



Extensive Command Set

In addition to the usual commands available at user level in Ubuntu Linux, there are command line programming interfaces for sage, python2 / ipython2, python3 / ipython3, R, gap, java, julia, octave and many more. There is an extensive list of added executables at the CoCalc installed software list.

Collaboration and Side Chat

Like any other application in CoCalc, the terminal environment allows more than one user to enter commands and view results in the same session. The terminal size will adjust according to the available number of rows and columns of each particiant. It also allows users participating in the same session to share comments by opening a chat for the terminal session by clicking the Chat icon at upper right.

Additionally, you can use the “open door” button to remove all other collaborators interfering with your current terminal session.

Disconnect and Resume

If you disconnect your browser from CoCalc while you have a terminal session open, the session is preserved as long as the project is not restarted. Next time you reconnect – even with a different browser or via another computer – a still running session will appear again and you can continue to work where you’ve left.

Multiple Terminals in a Single Browser Tab

Terminals open up in a Frame Editor. This means you can use buttons at upper right to split the terminal frame vertically or horizontally. The split defaults to the middle of the frame, but the dividing line can be dragged to give more space to one of the new frames and less to the other. You can continue splitting to get even more frames in a single browser tab. Click the x icon at upper left to close a frame.

Anaconda Environment

To use the Anaconda data science platform, enter the command anaconda5 in a terminal session. The shell prompt will change to notify you that you’re now working in the default (“base”) anaconda environment. To exit the anaconda platform and continue your terminal session, use the command exit-anaconda.

Note: an older version of anaconda is temporarily available with the command anaconda3. We recommend all new applications use anaconda5.

Tips and tricks

Terminal Environment in Split Frame with File Editor

If you open a source code file in CoCalc for editing, for example an .sh, .py, .R, or .rb file, you can split the editor frame and add a command session. That way, you can easily move between editing and running the code.


Customize font

To change the size of the font, click the plus and minus magnification glass icons at the top of a focused terminal frame.

In order to change the appearance of the font family of the terminal, adjust the font settings of your web browser. For example, in Google Chrome this is done in SettingsAppearaceCustomize Fonts:


Then select a different fixed-width font:


Are you experiencing any problems or is something missing? Click the [ Help ] button at upper right while you are logged into CoCalc to open a help request, or send email to