You are on page 1of 5

Lab No.

02 Working with Navigation,


and File & Directory Handing
Commands

Name: Mohid Anwar

Subject: Operating Systems

Instructor Name: Dr. Rubina Adnan

Section: 4-A

Roll No: SP21-BCS-047

1|Page
Date: 29-09-2022
Question 1
Task 1:
Considering the above activities (given solved actvites section), perform the following tasks
• move myfile to mydir1

• copy myfile to mydir2

• copy mydir2 on Desktop

2|Page
• delete mydir1 (get confirmation before deleting)

• Rename myfile to mynewfile

Task 2:
This activity is related to I/O redirection
• Go to Desktop directory

• Write the long-listing of contents of Desktop on an empty file out-put-file

3|Page
• View contents of out-put-file

Task 3:
Considering the lab activities, perform the following tasks
• Go to Desktop directory

• write the contents of mynewfile to newfile

• view the output of both mynewfile and newfile on screen

• write the combined output of mynewfile and newfile to a third file out-put-file

4|Page
(Appended The Contents)

Task 4:
Long list all files and directories in your system and write out-put on a text-file.

5|Page

You might also like