Goals

  • Reminder of the most common commands to manage files and move around in the filesystem (pwd, ls, cd, cp, mkdir, mv, rm, rmdir, find)

  • Highlight on process management commands (ps, top, kill)

  • Input/Output redirections

Exercises

For the purpose of all the exercises of this class, hints on which commands to use are given in parentheses at the end of each questions.

Everything in this exercise is doable from the command line only. Resist the temptation to use your graphical web browser to download the archive!

  1. Download the archive (curl or wget)

    $> curl -u cps22023:cps22023 -O https://ci.mines-stetienne.fr/cps2/course/cls/assets/data/cld.tgz

    or

    $> wget --user cps22023 --password cps22023 https://ci.mines-stetienne.fr/cps2/course/cls/assets/data/cld.tgz

Exercises

  1. Expand this archive in your home directory (tar)

    $> tar zxf cld.tgz

    ➠ This command will create the CLDungeon directory into your homedir.

  2. Make CLDungeon the current directory (cd)

  3. Execute the start.sh script, read and find your way out!

    $> ./start.sh