Skip to content

Instantly share code, notes, and snippets.

@acidtone
Last active April 14, 2024 12:36
Show Gist options
  • Save acidtone/6e3b69b7f2a81573d683b716fb069296 to your computer and use it in GitHub Desktop.
Save acidtone/6e3b69b7f2a81573d683b716fb069296 to your computer and use it in GitHub Desktop.
Command Line Activity: Follow the white rabbit

Command Line Activity: Follow the white rabbit

This is a command line exercise for practicing basic file system navigation commands:

  • pwd: Display your present (working) directory
  • ls: List directory contents
  • cd: Change directory

Instructions

  1. Download this Gist to your workspace and expand/extract animal-world.zip.
  2. Navigate to this directory using your terminal.
    • Note: when you open a new terminal window (i.e. using Git Bash on Windows or Terminal on Mac OS) the default location will normally be your home folder (/Users/jane).
  3. Somewhere in this directory is an image of a White Rabbit. Find it using only the command line.

Extra Activities

Find the rabbit? Try these challenges next:

  • Create a new directory with the mkdir command;
  • Copy an animal to another location in animal-world using the cp command;
  • Rescue (move) the Tiger from the zoo using the mv command;
  • The clearing in the forest is so beautiful, it needs a file to describe it:
    1. Navigate to the clearing;
    2. In the clearing, create an empty README.md file using the touch command;
    3. Using VS Code, open README.md and write a poetic description of the clearing, OR:
      • Advanced: write a poetic description of the clearing in README.md directly from the terminal using vi or vim.
  • Open an image from the command line (you might need to search for some hints on this one).

Attributions

Lorem Picsum Images

Original source: Unsplash

Public Domain Images

This file has been truncated, but you can view the full file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment