CS21 Lab 3 Linux Adventure

Due Saturday, September 30, before midnight

This optional adventure will give you practice with linux commands cd, ls, pwd, cat and mv. You will need to move a file to the correct location. If you complete the adventure, we will credit one extra credit point that can be used for this lab or a future lab.

In this adventure, you are searching for a specific pokémon across the pokéworld.

Pokéworld
Figure 1. src

The pokéworld is divided into different regions (example Johto, Kanto, Hoenn etc). Each region contains different cities and towns. And each city/town has different locations within it (such as pokégyms, pokéhospitals, different stores etc.). Within these places you can search for clues (files) that will help you on your hunt!

The tools you will need to search are detailed below:

Your mode of travel are the following commands:

cd <dir>

  change directory to desired directory

cd ../

move backwards out of directory up one level

Your GPS is:

pwd

print working directory - will give you your current location

ls 

lists all of the things in your current location(directory). Clues can be found in files or locations/directories

To check contents of a file:

cat <filename> 

outputs contents of a file to your terminal

less <filename> 

an interactive way to read a file, use space bar to page down, q to exit

To get started, navigate into the adventure_1 directory and read THE_ADVENTURE_BEGINS_README using the following commands:

cd                   # to go to your home directory
cd cs21
cd linux_adventures/adventure_1
cat THE_ADVENTURE_BEGINS_README

To complete the adventure for an extra credit point, you must move the file containing the jigglypuff into your pokéball.

Happy Hunting!

Jigglypuff
Figure 2. src