ITEC 274 - Lab 4 FileManagement
ITEC 274 - Lab 4 FileManagement
Instruc ons
To get started, download, and open the word document (274_exerciseE_FileManagement.docx) a ached to this exercise in BlackBoard / Lab.
You will submit your answers for the exercise via this word document. No other documents or formats will be accepted. Submit via
BlackBoard / Labs.
This exercise is run on a Windows computer (or a Windows VM). You will explore opera ng system le management using the Windows
command line and GUI. You will use the following commands as described in the table below.
1. Check volume/disk informa on using GUI and command line. [10 pts]
b. Select the H: (if you can) OR C: (if the H: drive is not available) and show its proper es (Right click / Proper es).
i. [] [2 pts]
fi
fi
ti
ti
ti
c. What is the volume name of H: OR C: (you may not have a volume name on the drive)? Answers:__STUDENTSHARE-O_Z
_______
ii. Note: wmic volume switch will only show local storage so use wmic logicaldisk switch
iii. Hint: start with wmic get logicaldisk get … (and add the appropriate parameters to list the drive le er, volume name,
volume size and amount of free space)
k. List the drive le er, volume name, volume size and amount of free space of each volume on your computer.
i. [Clear screen, run command and then copy/paste results here] [1 pt]
fi
tt
ti
tt
l. Show the single, full command (with all parameters/switches) used to answer the ques ons above.
2. Working with les, directories and sub directories in Windows command line. [20 pts]
b. Select the H: (if you can) OR C: (if the H: drive is not available) (use drive le er: ).
e. What command(s) did you use to make the directory? Answers:__mkdir ITEC274ExerciseF, mkdir My274Color_______
g. Return to the command line and verify the MyFavoriteColor.txt le you created exists.
h. What command(s) did you use to verify the le exists? Answers:_cd ITEC274ExerciseF, cd My274Color, dir________
l. What command(s) did you use to Make the directory? Answers:__mkdir My274Files_______
o. Use notepad to Make an ASCII text le containing with your name, course and sec on.
i. Name the le My le.txt and be sure to save it in H:\ITEC274ExerciseF\My274Files or C:\ITEC274ExerciseF\My274Files.
p. Return to the command line and verify the My le.txt le you created exists.
q. What command(s) did you use to verify the le exists? Answers:_cd ITEC274Exercise, cd My274Files, dir________
t. What command(s) did you use to copy My le.txt to H:\ITEC274ExerciseF or C:\ITEC274ExerciseF? Answers:__copy
“MyFile.txt” “H:\ITEC274ExerciseF\MyFile.txt” _______
u. Rename the le H:\ITEC274ExerciseF\My le.txt or C:\ITEC274ExerciseF\My le.txt to MyFile2.txt (in same directory).
v. What command(s) did you use to rename My le.txt to MyFile2.txt? Answers:_ren “H:\ITEC274ExerciseF\MyFile.txt”
“MyFile2.txt” ________
x. What command(s) did you use to copy My le2.txt to My le3.txt? Answers:__copy "H:\ITEC274ExerciseF\My le2.txt" "H:
\ITEC274ExerciseF\My le3.txt"
y. _______
aa. What command(s) did you use to delete My le2.txt? Answers:__del "H:\ITEC274ExerciseF\My le2.txt"_______
3. Use notepad to create an ASCII text le containing the rst name of 3 friends / people you know.
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
ti
fi
fi
fi
a. Name the le MyFriends.txt and be sure to save it in H:\ITEC274ExerciseF\My274Friends or C:
\ITEC274ExerciseF\My274Friends.
b. Return to the command line and verify the MyFriends.txt le you created exists.
c. What command(s) did you use to verify the le exists? Answers:_cd ITEC274ExerciseF, cd My274friends, dir________
e. Copy the MyFriends.txt you just crested in \ITEC274ExerciseF\My274Friends to your \ITEC274ExerciseF\My274Files directory
(use same le name).
k. Use the tree /f command to show the directory structure and les of your directory H:\ITEC274 or C:\ITEC274.
i. [Paste screen shot showing the structure and les of your directory…] [2 pt]
fi
fi
fi
fi
fi
fi
l. What does the tree command do? Answers:_tree command displays a graphical, tree-like view of the directory structure,
showing folders and subfolders within a speci ed directory path.________
m. What does the /f in tree /f do? Answers:__the /f op on in tree /f includes the lis ng of all les in each folder, in addi on to
showing folder structure._______
4. Describe a disk drive, folder and le and the purpose each serves on a computer. [15pts]
a. Disk Drive _a disk drive is a physical or virtual storage device in a computer where data is stored and accessed.___________________
b. Folder _a folder is a virtual container within a le system on a disk drive that organizes les and other folders.______________________
fi
fi
fi
ti
fi
ti
fi
ti
c. File__a le is a collec on of data stored on a disk drive, represented by a unique name and le extension. Files contain types of
informa on, including text, images, audio, and other executable instruc ons.________________________
5. Computer les are categorized as either a program or data/document. Describe each and provide an example of each. [15 pts]
a. Program__a program is a le that contains executable code allowing a computer to perform speci c tasks or func ons.
____________________
b. Data __Data les store informa on that is used by programs to perform speci c tasks but doesn’t contain executable
instruc ons._______________________
c. Document__a document is a type of data le created and used by applica ons to store user-generated content, o en in a readable or
editable format. ___________________
6. I/O redirec on in Windows command line is used for le system and text manipula on. [15 pts]
a. Change your current directory to c:\ or h:\ (or another drive on your computer)
c. Use notepad to create an ASCII text le named containing the following names (one student per line):
Ingold, Le e
Crouse, Rosella
Tuller, Vernon
Demayo, Taina
Harlow, Mary
Wideman, Lavelle
Delcid, Emerita
Villarreal, Marlana
Rubel, Robert
11. Use the type to display the contents of StudentData.txt on the screen
a. [Paste screen shot showing StudentNames.txt contents using type command here…] [2 pts]
ti
fi
ti
tti
fi
fi
ti
fi
ti
fi
ti
fi
fi
fi
fi
ti
ti
fi
fi
ti
fi
ti
ft
12. Now use dir but redirect the output to a le named dir_H les.txt
13. What command did you use for the above redirec on? Answers:__dir > dir_H les.txt_______
14. How big (# bytes) is the output le (dir_H les.txt)? Answers:__147 bytes_______
fi
fi
fi
ti
fi
fi
15. Use the type command to show the contents of the dir_H les.txt.
a. [Paste screen shot showing dirH les.txt contents using type command here…] [2 pts]
20. Now use the sort command and redirec on to sort the contents of the StudentNames.txt and redirect output to a le called
sorted_StudentNames.txt
ti
ti
fi
21. What command did you use for the above redirec on? Answers:__sort StudentNames.txt > sorted_StudentNames.txt_______
22. Use the type command to show the contents of the sorted_StudentNames.txt.
a. [Paste screen shot showing sorted_StudentNames.txt contents here…] [2pts]
24. Change your current directory to c:\windows (or the windows directory on your computer)
ti
25. Use dir to show directory lis ng of c:\windows – likely a very long lis ng
26. Now pipe the output of the dir command to the more command to scroll through the directory lis ng of c:\windows
27. What command did you use for the above redirec on? Answers:_dir | more________