You are on page 1of 8

SCHOOL OF INFORMATION AND TECHNOLOGY

NAME: NASINGAO, Ericka S. DATE PERFORMED: 08/28/23

Section: IDB1 DATE SUBMITTED: 08/29/23

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.

PASTE SCREENSHOT TO INCLUDE DESKTOP WALLPAPER (content should be


readable)
c. In the current directory, use the md command to create 1 folder OPSYST1. Go to the new folder by typing
cd OPSYST1. Create 3 new folders: IDB1Directory1, IDB1Directory2, and IDB1Directory3. (Note: The
command mkdir performs the same function as the command md.)
d. Type dir to verify that the folders have been created.

PASTE SCREENSHOT TO INCLUDE DESKTOP WALLPAPER (content should be


readable)

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.

PASTE SCREENSHOT TO INCLUDE DESKTOP WALLPAPER (content should be


readable

Step 3: Create text files.


a. Navigate to IDB1Directory1 at the prompt.
b. Type echo This is at text document.txt > doc1.txt at the command prompt. And press the enter key.
What does this command (echo This is at text document.txt > doc1.txt) do?
This command creates a new text file named doc1.txt that is stored in IDB1Directory1.
c. Create the following files in the specific directories listed in the table below.

Directory File Type Content Filename Screenshot

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

IDB2Directory Spreadshee This is an computatio


4 t excel file n

IDB2Directory audio This is Favesong


5 my
favorite
song

Step 4: Copy, delete, and move files


a. At the command prompt, type move doc1.txt C:\Users\USERNAME\OPSYST1\IDB1Directory2 to move
the file doc1.txt to the C:\Users\USERNAME\OPSYST1\IDB2Directory2 directory.
b. Type dir at the prompt to verify that doc1.txt is no longer in the current directory.

PASTE SCREENSHOT TO INCLUDE DESKTOP WALLPAPER (content should be


readable

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

d. Use the move command to move doc1_copy.txt to IDB1Directory1.

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

PASTE SCREENSHOT TO INCLUDE DESKTOP WALLPAPER (content should be


readable

f. Move the audio file to IDB1Directory3

PASTE SCREENSHOT TO INCLUDE DESKTOP WALLPAPER (content should be


readable

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.

PASTE SCREENSHOT TO INCLUDE DESKTOP WALLPAPER (content should be


readable

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.

l. Go to directory OPSYST1 and type the tree/f

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

You might also like