Lab Tasks of Prompt
Lab Tasks of Prompt
1: Navigating Directories
Objective: Learn to navigate directories
using the cd command.
COMMAND LIST:
a. Open Command Prompt.
b. Use the cd command to navigate to documents.
c. Create a new subdirectory named LabTasks within
the current directory using the mkdir command.
d. Navigate into the LabTasks directory.
e. Verify the current directory path using the cd
command without any arguments.
Questions:
a. What command did you use to check your current
directory?
ANS: cd without any arguments
BRIEF REPORT:
In this task we changed a directory and created
a new subdirectory in it and also verified it by
using cd command.
Task 2.2: Listing and Managing Files
Objective: Practice listing and managing files
using dir, copy, and del.
COMMAND LIST:
a. In the LabTasks directory created earlier, create two
text files: file1.txt and file2.txt by echo command.
b. Use the dir command to list all files in the LabTasks
directory.
c. Use the copy command to create a copy of file1.txt named
file1_copy.txt.
d. Use the del command to delete file2.txt.
e. Verify the changes using the dir command again.
Questions:
a. What does the dir command output show
BRIEF REPORT:
In this task we created two textfiles in the
previously created directories then used dir
command for listing all files then we made a
copy of file1 into file1_copy and deleted the
file2 and lastly used dir command again for
verification
Task 2.3: Moving and Removing
Directories
Objective: Use move, rmdir, and mkdir to
manage directories.
COMMAND LIST:
a. Inside the LabTasks directory, create a
new directory named SubDir using the
mkdir command.
b. Move the file1_copy.txt into SubDir using
the move command.
c. Navigate into SubDir and use the dir
command to ensure file1_copy.txt
is inside.
d. Navigate back to the LabTasks directory
and remove SubDir using the rmdir
command.
Questions:
a. How did you ensure that the directory was empty
before using rmdir?
BRIEF REPORT:
In this task we created a new subdirectory in the
previously created directory then we moved the
file in the new subdirectory and verified the
existence of file using dir command and then
removed the new subdirectory using rmdir
command.
Task 2.4: Clearing the Command Prompt
Screen
Objective: Learn to clear the screen using
the cls command.
COMMAND LIST:
a. Use the Command Prompt for a few
commands to fill the screen with text.
b. Clear the screen using the cls
command.
Questions:
a.How did the cls command affect the display in
Command Prompt?
BRIEF REPORT:
In this task we navigate to different directories
and then cleared the screen using cls command
remaining in the same directory.