(Sa1-Summative) - Basic Dos Internal and External Commands Linux Directory and File Creation Commands
(Sa1-Summative) - Basic Dos Internal and External Commands Linux Directory and File Creation Commands
CPEOPSYSLA
(OPERATING SYSTEM - LAB)
SUMMATIVE ASSESSMENT
1
BASIC INTERNAL AND EXTERNAL DOS COMMANDS /
LINUX DIRECTORY AND FILE CREATION COMMANDS
Section:
Professor:
Directions:
Do the following procedures below using DOS commands
Perform the following steps BEFORE doing the exercises.
Use snipping tool to capture your executed commands and its corresponding outputs.
SAVE your file as SURNAME_SA1.docx
1. Create a new directory in your H:\ or C:\ and name the directory as “LASTNAME_FIRSTNAME”.
Paste your captured executed commands and output below:
>cd c:
>mkdir Velagapudi_Nikhil
2. Go to your newly created directory and create the following empty files using copy con command.
a. file1.doc
b. file2.doc
c. file3.xls
d. file4.ppt
e. file5.jpg
f. art.jpg
g. pro.exe
h. fam.exe
^z
^z
^z
^z
^z
^z
^z
^z
>cd Velugapudi_Nikhil
>copy * .\My Folder1
6. From My Folder1, copy ALL DOCUMENT FILES using wildcards to My Folder2. List the content of My
Folder2.
Paste your captured executed commands and output below:
> cd My Folder1
>copy .\My Folder2\*
>cd ..
>copy *.exe .\My Folder1\My Folder2
8. Check the file attributes of all files stored to My Folder1? What are the given files attributes?
Paste your captured executed commands and output below:
>attrib My Folder1
9. Provide additional read-only and hidden file attributes to all files stored to My Folder1. Display the file
attributes of the My Folder1 content.
Paste your captured executed commands and output below:
S: System H: Hidden
10. Check the content of My Folder1 using dir command, how many files did you see?
Paste your captured executed commands and output below:
11. Reset the attributes of all files to archive in My Folder1. Then, using wildcard display all files with
starting filename “f” followed by any characters and with any extension name. How many files are there?
Paste your captured executed commands and output below:
12. From My Folder1, display all files with 3-character file name with any extension name using wildcard.
Paste your captured executed commands and output below:
14. Create the following files at your SURNAME_FIRSTNAME folder using copy con command.
FUE
^z
Information technology
^z
15. In one line of command, display the content of the files F.txt and IT.txt.
16. Using redirector, combine F.txt and IT.txt content to another filename FIT.txt. Display the file content of
FIT.txt. What is the output?
>type FIT.txt
17. Rename the file FIT.txt to FEU.doc. Display the content of the file FEU.doc in your command prompt.
>type FEU.doc
18. Delete the file F.txt. Display the content of your SURNAME_FIRSTNAME folder.
>del F.txt
$pwd
2. Create a directory at your current directory. (Use your surname_mp3 as your directory name)
Paste your captured executed command and output below.
$mkdir velagapudi_mp3
3. Go to your surname_mp3 directory and list the content of your current working directory.
Paste your captured executed command and output below.
$cd velagapudi_mp3
$pwd
4. Inside your surname_mp3 directory, create a directory tree where Folder3 will be created under Folder2
and Folder2 is created under Folder1.
Paste your captured executed command and output below.
$mkdir Folder1
$mkdir ./Folder1/Folder2
$mkdir ./Folder1/Folder2/Folder3
5. Go to Folder1 directory and create a file inside Folder1 and name it as name.txt where the file content is
your full name.
Paste your captured executed command and output below.
$cd Folder1
$cat>name.txt
NikhilVelagapudi
^z
$rm -f Folder2
$pwd