Lab Session 1 Command Line Basics
Lab Session 1 Command Line Basics
Objective
• Become familiar with the Windows Command Prompt (CMD) and essential commands
to navigate and manage files, directories, and basic system tasks.
Tasks
1. Navigation Commands
o cd: Change directory. Used to navigate between folders.
Example: cd Documents
o dir: Display list of files and directories in the current directory.
Example: dir
o cls: Clear the screen to remove previous command outputs.
Example: cls
o tree: Display directory structure of a drive or path.
Example: tree C:\
2. File Manipulation
o copy: Copy files from one location to another.
Example: copy file.txt D:\Backup
o move: Move files from one location to another.
Example: move file.txt D:\Projects
o del: Delete one or more files.
Example: del old_file.txt
o ren: Rename a file or directory.
Example: ren file.txt new_file.txt
3. Directory Management
o mkdir: Make a new directory.
Example: mkdir NewFolder
o rmdir: Remove a directory (use /s to delete non-empty directories).
Example: rmdir /s OldFolder
4. System Information
o echo: Display messages or environment variables.
Example: echo Hello, World!
o systeminfo: Display detailed system information.
Example: systeminfo
o ipconfig: Display network configuration details.
Example: ipconfig
o ping: Check network connection to another computer or server.
Example: ping google.com
5. Task Management
1. In CMD, run the systeminfo command and take note of your computer's information,
such as OS version and system memory.
2. Check your network configuration by running ipconfig and identifying your IP
address.
3. Test connectivity to a popular website (e.g., Google) using the ping command:
ping google.com
4. Run the tracert command to trace the route to google.com and observe the
network path taken.
5. Use the netstat -an command to view active network connections.
1. Use the echo %PATH% command to view your current PATH environment variable and
note the directories listed.
2. Create a new environment variable named MY_VAR with the value HelloCMD:
set MY_VAR=HelloCMD
echo %MY_VAR%
set MY_VAR=
4. Delete the image1.jpg file using the del command and then delete the Media
directory (including any remaining contents) using the rmdir command.
5. Verify that Media and its contents have been removed by listing the contents of
CMD_Practice with dir.
Objective:
Create a structured and organized file management system within CMD, complete with
directories for personal documents, media, and work files. This project will also include backup
automation and system information logging.
Project Outline
Deliverables:
Objective:
Create a CMD-based system maintenance and troubleshooting toolkit for an office environment,
focusing on routine maintenance tasks, network diagnostics, and system health checks.
Project Outline
Deliverables: