All Collections
User Manual
Capsule setup
.sh (re: shell) scripts on Code Ocean
.sh (re: shell) scripts on Code Ocean

These are shell scripts, arguably the most elegant and powerful way to run and chain your analyses together.

Shahar Zaks avatar
Written by Shahar Zaks
Updated over a week ago


Code Ocean capsules need a run script set to run. These are shell scripts, typically written in Bash. Shell scripts execute system-level operations. Browsing Code Ocean's Explore page, you will see that many capsules retain some version of this file, often called run or, adapted to each capsule.


On Code Ocean, shell scripts are often used as master scripts, because they can link together multiple analysis steps, including operations in multiple languages. Last, shell scripts provide useful commands for moving and saving files, such as creating symbolic links between folders.

How to learn:

Software Carpentry provides an excellent course on shell scripts. Their course on automation and make may also be of interest. 

Did this answer your question?