| aidemia--modules-lessonplan_request | Titles of parts of the lesson must be formatted as headings |
| What to create | Lesson plan |
| Which subject | Computer science |
| What topic | Command line |
| What length (min) | 30 |
| What age group | Year or Grade 11 |
| Include homework | |
| Include images descriptions | |
| Any other preferences |
Subject: Computer Science
Topic: Command Line
Duration: 30 minutes
Grade: 11 (Age 16-18)
By the end of this lesson, students will be able to:
The command line allows users to interact with the operating system by typing text commands. It is a powerful tool that offers more control and efficiency.
Opening the Command Line
Win + R, type cmd, and hit Enter.Cmd + Space), type Terminal, and hit Enter.Basic Commands
pwd (Print Working Directory): Shows the current directory.ls (List): Lists files and directories in the current location (use dir for Windows).cd (Change Directory): Moves between directories.cd DocumentsCreating a File
touch filename.txt (Mac/Linux)echo. > filename.txt (Windows)Deleting a File
rm filename.txt (Mac/Linux)del filename.txt (Windows)Creating a Directory
mkdir new_directoryRemoving a Directory
rmdir new_directory (make sure it's empty)Navigate to Your Home Directory
cd command to move to your home directory.Create a New Directory
test_directory.Create a File Inside the Directory
test_directory and create a file named file1.txt.List Files
ls or dir to check that file1.txt exists.Delete the File and Directory
Instructors should circulate to assist students as they complete these tasks.
Recap main points of the lesson.
Engage students with a few questions:
Encourage students to explore more commands and practice on their own.
Assign students to research and document three advanced command line commands they find interesting. They should prepare to share their findings in the next class.
This lesson provides an essential foundation for students to explore the command line further, enhancing their computing skills and understanding of operating systems. Encourage curiosity and experimentation beyond the classroom!