3 sessions — Master the Windows Command Line
Grade XI • Computer Science ⏱️ 3 × ~20 minBrief Intro — Windows CMD
The command line still matters because many powerful operations can only be done in CMD — from system administration to automation. However, be careful: commands like `del` and `rd` remove files permanently without sending them to the Recycle Bin.
In this lab, you'll master essential CMD commands for navigation, file management, and system control through three hands-on sessions.
Learn to navigate the command line environment and understand your system.
Click a command in the dock below to see its syntax, purpose, and example output.
Task 1: Version Check
Use the `ver` command to identify which version of Windows you are currently running.
verExpected: Microsoft Windows [Version 10.0.xxxxx] or similar version information
Task 2: Date & Time
Display the system date and time using the `date` and `time` commands.
date and timeExpected: Current date in format and current time; may prompt to enter new values
Task 3: Directory Navigation
Navigate to the C: drive (or your user folder) using the `cd` command.
cd <DIR> (e.g., cd Desktop)cd .. to go to parent directoryExpected: Prompt changes to show new directory path
Task 4: Directory Listing
Use the `dir` command to list all files and folders in the current directory.
dirExpected: List of directories and files with sizes, dates, and times
Task 5: Tree Structure & Help
Use `tree` to view the hierarchical structure and `help dir` or `dir /?` for documentation.
tree and help dir or dir /?Expected: `tree` shows ASCII tree structure; `help dir` displays syntax and options
Create, manage, and manipulate files and directories from the command line.
Click command + target chips to build correct commands. See if you can construct the right syntax!
Task 6: Create Directories
Use `md` (make directory) to create three folders inside Lab_Work named: Docs, Images, and Temp.
md <foldername> or mkdir <foldername>md Docs, md Images, md TempExpected: Command executes successfully; verify with `dir` to see new folders
Task 7: Create Files with echo
Use `echo Hello World > welcome.txt` to create a file containing text.
echo Hello World > welcome.txtExpected: File created; verify with `type welcome.txt` to see content
Task 8: Create Files with copy con
Use `copy con mynotes.txt` to create a file, type two lines of text, then press Ctrl+Z and Enter to save.
copy con mynotes.txtExpected: "1 file(s) copied" message; file created with your typed content
Task 9: View File Contents
Use the `type` command to display the contents of `welcome.txt` on your screen.
type welcome.txtExpected: "Hello World" or whatever text you created in the file
Task 10: Rename, Move, and Copy
Rename `welcome.txt` to `greeting.txt`, move it into the Docs folder, and copy the entire Docs folder into Temp.
ren welcome.txt greeting.txtmove greeting.txt Docsxcopy Docs TempExpected: Each command executes successfully; verify file locations with `dir` in respective folders
Clean up your workspace and learn advanced command-line control techniques.
Task 11: Clear Screen
Use the `cls` command to clear your terminal window after completing the previous tasks.
clsExpected: Screen is cleared; only prompt remains at top
Task 12: Delete Files
Delete `mynotes.txt` using the `del` command. Safety Note: This removes files permanently (no Recycle Bin).
del mynotes.txtExpected: File is deleted; verify with `dir` to confirm it's gone
Task 13: Remove Directories
Remove the Temp folder using `rd` (rmdir). Note: Ensure the directory is empty first!
rd Temp or rmdir TempExpected: Directory is removed; verify with `dir` to confirm it's gone
Task 14: Start and Exit
Use `start` to open a new Command Prompt window or launch an application like notepad, then use `exit` to close your session.
start notepad or start cmdexitExpected: `start` opens new window/application; `exit` closes the command prompt
Ready to test your knowledge?
Take the Assessment →