You are on page 1of 6

Assignment No.

1
Student Name:
Student ID:
Assignment Solution CS604 Spring-2024

Answer:

i) Change the directory to the Desktop...

ii) Show the absolute path name of the working directory (Desktop).
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.


i) Create a directory with the name Lectures.

i) 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.
i) Show the contents of the file.

i) 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...”
i) Remove the directory with your student ID.

i) 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.

You might also like