build details

Show: section status errors & todos local changes recent changes last change in-page changes feedback controls

Bash

Modified 2020-07-15 by Dev Ramesh

Modified 2020-09-11 by Dev Ramesh

Student version (unknown ref duckiesky_high_school_student/computing-pi-bash)

previous warning next (17 of 36) index
warning
I will ignore this because it is an external link. 

 > I do not know what is indicated by the link '#duckiesky_high_school_student/computing-pi-bash'.

Location not known more precisely.

Created by function n/a in module n/a.

Hardware -

  • Basestation

  • Drone (Build Part 1 completed)

Previous lesson - Networking

Knowledge -

  • Computer file structure

  • Essential bash commands

Skills -

  • Navigating computer directories in the terminal

  • Editing files through the command line

Bash

STANDARDS: Next Generation Science Standards (NGSS) and International Society for Technology in Education (ISTE)

Modified 2020-07-23 by Peyton Strong

NGSS: HS - ETS1 - 2: Design a solution to a complex real-world problem by breaking it down into smaller, more manageable problems that can be solved through engineering.

ISTE: 1. d.: Understand the fundamental concepts of technology operations, demonstrate the ability to choose, use and troubleshoot current technologies and are able to transfer their knowledge to explore emerging technologies.

Assessments and Evidence of Understanding

Modified 2020-07-29 by Peyton Strong

By the end of this lesson, students should be able to complete the below Bash terminal task.

AGENDA (Brief Summary of Activities)

Modified 2020-09-14 by Dev Ramesh

5 min: Basestation Setup

35 min: Bash Lesson

20 min: Bash Terminal Task

Differentiation (strategies for grouping, ELL, and inclusion)

Modified 2020-04-30 by Dev Ramesh

Advanced preparation/Materials/Set Up (Including Misconceptions)

Modified 2020-08-14 by Dev Ramesh

Teacher Materials:

Basestation, a projector (optional)

Classroom Set Up:

Teachers can write a DO NOW on the board for students to set up their basestations.

SCRIPT OF TEACHING AND LEARNING ACTIVITIES

Modified 2020-04-30 by Dev Ramesh

Introducing The Lesson

Modified 2020-09-16 by Dev Ramesh

Hook:

  • This will be a lesson for the student on Bash and the Shell. It is important to learn how to utilize a shell as it is the introduction to the inner processes of the operating system. Additionally, the shell will be our gateway to interacting with the Pi on our drone.
  • Conceptually connect Bash to Markdown in the sense that the computer is being affected via text: the purpose of Bash is to “control” the computer vs whereas Markdown is utilized for the purpose of “visual layout.”

Main Lesson

Modified 2020-09-16 by Dev Ramesh

Teachers can either use a live demonstration of the exercise via a projector using the webpage for the Pi’s text editor where students follow along, let students follow along with the student book instructions, or utilize an online Bash tutorial (see Useful Resources and References below) that the students can work through as an alternative.

  • (Optional) Have the teacher check off the outputs in the terminals for the exercise

By the end of the Main Lesson, students should be able to:

  • See basic information in the terminal and navigate the file system (pwd, ls, cd).
  • Creating and removing files and directories (touch, rm, mkdir, rmdir).
  • Using a carat to output to a file (e.g. “echo ‘foo’ >bar.txt”).
  • Printing output in the terminal (echo, cat).
  • Clearing terminal output and exiting (clear, exit).

Ending The Lesson

Modified 2020-09-16 by Dev Ramesh

Exercise: Students should do the exercise in the textbook with Bash commands to test out their knowledge of the terminal. They can do this through the online web editor when connected to the Pi.

Useful Resources and References

  1. Shell Tutorial 1
  2. Shell Tutorial 2
  3. Bash Command Overview
  4. Bash Shell Script Tutorial