Professional Documents
Culture Documents
OPSYST1 – IDB1
Using CLI commands to manage files and folders in Microsoft Windows.
Requirement:
A computer running Windows
Instructions
Step 1: Access the Windows command prompt.
Step 2: Create and change directories.
In this step, you will use the change directory (cd), make directory (md), and directory (dir) commands.
Note: A directory is another word for folder. Directory and folder are used interchangeably throughout this lab.
a. Type cd at the command prompt.
Question:
What is the current path?
C:\Users\KCP>
b. Type dir at the command prompt to list the files and folders that are in the current folder.
Page 2 of 8
e. Navigate to IDB1Directory3 at the command prompt and press Enter.
Which folder are you in now? (type absolute or complete path)
C:\Users\KCP\OPSYST1\IDB1Directory3>
f. Create IDB1Directory4 in the current directory. Within the IDB1Directory4 folder, create a folder named
IDB1Directory5. Use the dir command to verify the folder creation.
g. Type cd .. to change the current directory. Each .. is a shortcut to move up one level in the directory tree.
Question:
After issuing the cd .. command, what is your directory now? (type absolute or complete path)
C:\Users\KCP\OPSYST1\IDB1Directory3>
h. Use the tree command to list the entire directory and subdirectories you created.
Page 3 of 8
IDB2Directory Word This is a Doc1
2 word
documen
t
IDB2Directory Pdf This is a capture
3 portable
documen
t file
c. Type copy doc1.doc doc1_copy.txt to create a copy of doc1.doc. Type dir at the prompt to verify a copy
of the file has been created.
Page 4 of 8
PASTE SCREENSHOT TO INCLUDE DESKTOP WALLPAPER (content should be
readable
E. A copy of the file computation.xls can be created in a new location using the copy command. Copy
computation.xls to IDB1Directory5
Page 5 of 8
g. Change the current directory to IDB1Directory1. Type cd ..\IDB1Directory1 at the prompt.
h. To view the content of a file, use the type or more command at the prompt. Display the contents of the files
in the following directories
Directory Screenshot
IDB2Directory2
IDB2Directory3
IDB2Directory4
IDB2Directory5
i. Use the ren command to rename capture.pdf to capture_new.pdf. Use the dir command to display the
content in the directory.
Page 6 of 8
j. Use the type or more command to view the content of the newly rename file capture_new.pdf.
C:\Users\KCP\OPSYST1\IDB1Directory1> more capture_new.pdf.
This is portable document file
k. To delete a file or multiple files, use the del command with the file names at the prompt.
Single command would you use to delete all the files with doc1 in the filename: del doc1* :
Command to delete all the files in the directory: del *.*
Use the command to remove the files.
Page 7 of 8
Reflection Question
What are the new learnings you have experience in the lab activity and lesson using CLI commands? In what
situations do you think knowing how to use CLI commands can be of help.
In this activity, I can say that there are some things that confuse me, specifically on step 4. Nevertheless,
this activity was a bit challenging but fun at the same time. Here, I learned new commands like ren, move,
copy, del, type, and more. These are all new to me. I learned that using the CLI commands, I can make a
folder or a file, rename it, copy or move it to another folder, and even delete a file from a specific folder.
Knowing how to use CLI commands can help us students with our activities. Having more knowledge of the
commands also makes the task easier and faster for us. In another situation, when a user knows how to use
CLI commands, he can access a file more easily.
Page 8 of 8