0% found this document useful (0 votes)
149 views

(Sa1-Summative) - Basic Dos Internal and External Commands Linux Directory and File Creation Commands

This document provides instructions for a summative assessment on basic DOS and Linux commands. Students are asked to complete a series of tasks using DOS commands like DIR, COPY, DEL, REN, and MD to manipulate directories and files on their system. They then perform similar tasks using Linux commands like PWD, CD, RM, CAT, and DATE. The goal is to test proficiency with basic file and folder manipulation on both DOS and Linux systems.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
149 views

(Sa1-Summative) - Basic Dos Internal and External Commands Linux Directory and File Creation Commands

This document provides instructions for a summative assessment on basic DOS and Linux commands. Students are asked to complete a series of tasks using DOS commands like DIR, COPY, DEL, REN, and MD to manipulate directories and files on their system. They then perform similar tasks using Linux commands like PWD, CD, RM, CAT, and DATE. The goal is to test proficiency with basic file and folder manipulation on both DOS and Linux systems.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

COMPUTER ENGINEERING DEPARTMENT

CPEOPSYSLA
(OPERATING SYSTEM - LAB)

SUMMATIVE ASSESSMENT

1
BASIC INTERNAL AND EXTERNAL DOS COMMANDS /
LINUX DIRECTORY AND FILE CREATION COMMANDS

Student Name / Group


Name:
Name Role
Members (if Group):

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

PART 1: BASIC INTERNAL AND EXTERNAL DOS COMMANDS

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

CPEOPSYSLA - Operating System Laboratory Page 2 of 15


Paste your captured executed commands and output below:

>copy con file1.doc

^z

>copy con file2.doc

^z

>copy con file3.xls

^z

>copy con file4.ppt

^z

>copy con file5.jpg

^z

>copy con art.jpg

^z

>copy con pro.exe

^z

>copy con fam.exe

^z

CPEOPSYSLA - Operating System Laboratory Page 3 of 15


3. In one line of command, create another two directories in your LASTNAME_FIRSTNAME folder and
named them as “My Folder1” and “My Folder2” respectively. List the content of your
LASTNAME_FIRSTNAME folder.
Paste your captured executed commands and output below:

>mkdir .\Velugapudi_Nikhil\My Folder1

>mkdir .\Velugapudi_Nikhil\My Folder1\My Folder2


>dir

CPEOPSYSLA - Operating System Laboratory Page 4 of 15


4. At your SURNAME_FIRSTNAME folder, copy ALL FILES using wildcards to “My Folder1”.
Paste your captured executed commands and output below:

>cd Velugapudi_Nikhil
>copy * .\My Folder1

5. List the content of your SURNAME_FIRSTNAME folder including its subdirectories.

CPEOPSYSLA - Operating System Laboratory Page 5 of 15


Paste your captured executed commands and output below:
>dir -R Velugapudi_Nikhil

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\*

CPEOPSYSLA - Operating System Laboratory Page 6 of 15


7. From SURNAME_FIRSTNAME folder, move ALL EXECUTABLE FILES using wildcards to My Folder2.
How many files have been moved?
Paste your captured executed commands and output below:

>cd ..
>copy *.exe .\My Folder1\My Folder2

No. of moved files: 2

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

CPEOPSYSLA - Operating System Laboratory Page 7 of 15


What are the given files attributes? Give the meaning of each letter. ___attribute A means Archive_______

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:

>dir -H .\My Folder1

CPEOPSYSLA - Operating System Laboratory Page 8 of 15


What are the given file attributes? Give the meaning of each letter.
R: Read only A: Archive

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:

>dir .\My Folder1

CPEOPSYSLA - Operating System Laboratory Page 9 of 15


No. of files: 8___

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:

>dir .\My Folder1\f*

CPEOPSYSLA - Operating System Laboratory Page 10 of


15
No. of files: 6___

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:

>dir .\My Folder1\???.*

No. of files: 3___

CPEOPSYSLA - Operating System Laboratory Page 11 of


15
13. Make a copy of My Folder1 to your My Folder2 folder. Display the content of your My Folder2.

Paste your captured executed commands and output below:


>copy .\My Folder1\* .\My Folder1\My Folder2

>dir .\My Folder1\My Folder2

14. Create the following files at your SURNAME_FIRSTNAME folder using copy con command.

Filename: F.txt [FEU]

IT.txt [Institute of Technology].

Note: [file content]

Paste your captured executed commands and output below:

>copy con F.txt

FUE

^z

>copy con IT.txt

Information technology

^z

15. In one line of command, display the content of the files F.txt and IT.txt.

Paste your captured executed commands and output below:


>typr F.txt 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?

Paste your captured executed commands and output below:

CPEOPSYSLA - Operating System Laboratory Page 12 of


15
>copy F.txt+IT.txt FIT.txt

>type FIT.txt

17. Rename the file FIT.txt to FEU.doc. Display the content of the file FEU.doc in your command prompt.

Paste your captured executed commands and output below:

>ren FIT.txt FEU.doc

>type FEU.doc

18. Delete the file F.txt. Display the content of your SURNAME_FIRSTNAME folder.

Paste your captured executed commands and output below:

>del F.txt

19. Remove/delete the My Folder1 directory inside your My Folder2 directory.

Paste your captured executed commands and output below:


>rmdir /S My Folder1

20. Display the ff. in your command prompt:

Your Full name - Student number – Course

Paste your captured executed commands and output below:


>echo “Nikhil Velugapudi-2365465-IT”

PART 2: LINUX DIRECTORY AND FILE CREATION COMMANDS

1. What is your present working directory?

CPEOPSYSLA - Operating System Laboratory Page 13 of


15
Paste your captured executed command below.

$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

6. Display or view the content of name.txt


Paste your captured executed command and output below.
$Cat name.txt

CPEOPSYSLA - Operating System Laboratory Page 14 of


15
7. Remove Folder2 directory then list the content of Folder1
Paste your captured executed command and output below.

$rm -f Folder2
$pwd

8. Display the system date and time


Paste your captured executed command and output below.
$date

9. Remove Folder1 directory


Paste your captured executed command and output below.
$cd ..
$rm -f Folder1

10. Display your previously entered commands.


Paste your captured executed command and output below.
$history

CPEOPSYSLA - Operating System Laboratory Page 15 of


15

You might also like