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

CS 604 Assignment 1 Solution BC 210410285

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
149 views

CS 604 Assignment 1 Solution BC 210410285

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Solution File

BC210410285

Operating Systems (CS604) Total marks = 20


Assignment # 01 Deadline
April 29, 2024
Spring 2024

Please carefully read the following instructions before attempting the assignment.

RULES FOR MARKING


It should be clear that your assignment would not get any credit if:
 The assignment is submitted after the due date.
 The submitted assignment does not open, or the file is corrupted.
 Strict action will be taken if the submitted solution is copied from any other student or the
internet.

You should consult the recommended books to clarify your concepts, as handouts are insufficient.
You are supposed to submit your assignment in Doc or Docx format.
Any other formats like scanned images, PDF, ZIP, RAR, PPT, BMP, etc. will not be accepted.

Topic Covered:
 Browsing UNIX/Linux directory structure
 Useful UNIX/Linux commands

Topic Covered
Lecture 01 to Lecture 09

NOTE

No assignment will be accepted via email after the due date (whether it is load shedding, internet
malfunctioning, etc.). Hence, refrain from uploading assignments within the last hour of the deadline. It is
recommended that the solution be uploaded at least two days before its closing date.

If you find any mistakes or confusion in the assignment (Question statement), please consult your instructor
before the deadline. After the deadline, no queries will be entertained in this regard.

For any query, feel free to email me at:


[email protected]
Solution File
BC210410285

Question No 01 Marks (20)


Create the directory structure depicted in the diagram below by executing the appropriate commands in the Ubuntu
terminal. For each step, take a screenshot that shows the command you entered. Attach these screenshots to your
assignment submission. Please note that failure to include the screenshots will result in no marks being awarded for this
question.

Solution:
i) Change the directory to the Desktop.

ii) Show the absolute path name of the working directory (Desktop).
Solution File
BC210410285

iii) Create two directories:


a) One with the name Student ID (replace Student ID with your student ID)
b) Second, with the name CS604.

iv) Change the directory to CS604.

v) Create a directory with the name Lectures.

vi) Create a file with the name student_id.txt (replace student_id with your student id) and write your student id as
the file's content.

vii) Show the contents of the file.

viii) Move back to the Desktop directory and show the contents of the Desktop.

Following is the output for the contents of the Desktop, considering that your ID is BC12345678.

ix) Remove the directory with your student ID.

x) Show the contents of the Desktop again, but also show the contents of the subdirectories.
Following is the output for the contents of the Desktop after removing the directory with your student ID.
Solution File
BC210410285

You might also like