{ "metadata": { "kernelspec": { "display_name": "Bash", "language": "bash", "name": "bash" }, "language_info": { "codemirror_mode": "shell", "file_extension": ".sh", "mimetype": "text/x-sh", "name": "bash" } }, "nbformat": 4, "nbformat_minor": 5, "cells": [ { "id": "metadata", "cell_type": "markdown", "source": "
\n\n# CLI Educational Game - Bashcrawl\n\nby [Helena Rasche](https://training.galaxyproject.org/hall-of-fame/hexylena/)\n\nCC-BY licensed content from the [Galaxy Training Network](https://training.galaxyproject.org/)\n\n**Objectives**\n\n- How can I move around on my computer?\n- How can I see what files and directories I have?\n- How can I specify the location of a file or directory on my computer?\n- How can I create, copy, and delete files and directories?\n- How can I edit files?\n\n**Objectives**\n\n- Explore the bash dungeon and fight monsters\n- Reinforce the learning of CLI basics such as how to change directories, move around, find things, and symlinkings\n\n**Time Estimation: 2H**\n
\n", "metadata": { "editable": false, "collapsed": false } }, { "id": "cell-0", "source": "

This is not a tutorial like most GTN content but a fun exercise for you to play around and learn a bit about the command line, and hopefully re-inforce the skills you covered in Basic and Advanced CLI skills.

\n
\n
Hands-on: Open a Jupyter Terminal
\n

To best follow this tutorial, you should open a terminal.

\n

Here are some instructions for how to do this on various environments.

\n

Jupyter on UseGalaxy.* and MyBinder.org

\n
    \n
  1. \n

    Use the File → New → Terminal menu to launch a terminal.

    \n

    \"screenshot

    \n
  2. \n
  3. \n

    Disable “Simple” mode in the bottom left hand corner, if it activated.

    \n

    \"screenshot

    \n
  4. \n
  5. \n

    Drag one of the terminal or notebook tabs to the side to have the training materials and terminal side-by-side

    \n

    \"screenshot

    \n
  6. \n
\n

CoCalc

\n
    \n
  1. \n

    Use the Split View functionality of cocalc to split your view into two portions.

    \n

    \"screenshot

    \n
  2. \n
  3. \n

    Change the view of one panel to a terminal

    \n

    \"screenshot

    \n
  4. \n
\n
\n

Setup

\n", "cell_type": "markdown", "metadata": { "editable": false, "collapsed": false } }, { "id": "cell-1", "source": [ "git clone https://gitlab.com/slackermedia/bashcrawl\n", "cd bashcrawl/entrance\n", "# Run: cat scroll" ], "cell_type": "code", "execution_count": null, "outputs": [ ], "metadata": { "attributes": { "classes": [ "> Open a Jupyter Terminal" ], "id": "" } } }, { "id": "cell-2", "source": "

Have fun, and good luck!

\n", "cell_type": "markdown", "metadata": { "editable": false, "collapsed": false } }, { "cell_type": "markdown", "id": "final-ending-cell", "metadata": { "editable": false, "collapsed": false }, "source": [ "# Key Points\n\n", "- Learning linux can be fun!\n", "\n# Congratulations on successfully completing this tutorial!\n\n", "Please [fill out the feedback on the GTN website](https://training.galaxyproject.org/training-material/topics/data-science/tutorials/cli-bashcrawl/tutorial.html#feedback) and check there for further resources!\n" ] } ] }