Instructions:
Please read the following instructions carefully before submitting the assignment. It should be clear that your assignment will not get any credit if:
The assignment is submitted after the due date.
The submitted assignment does not open or file is corrupt.
Assignment is copied (partial or full) from any source (websites, forums, students, etc.)
Note: Lecture No. 1 to 6 are covered in this assignment. You have to upload only .doc file. Assignment in any other format (extension) will not be accepted and will be awarded with zero marks.
Objective:
The objective of this assignment is to provide hands on experience of:
For any query about the assignment, contact at CS604@vu.edu.pk
Assignment
Assignment Questions:
Question No 1 12 Marks
The following figure shows the directory structure in a UNIX/Linux system. Suppose a user Zulfiqar has a subdirectory Courses, under his home directory. This Courses directory contains subdirectories for the different courses that he has taken for teaching i.e. (CS204 and CS604).
If Zulfiqar is currently in the Courses directory then write UNIX/Linux commands to perform each of the following tasks.
How he can displays information about a current directory (including descendants) or files; wildcards supported?
How he can change file access and modification times?
How he can change directory and refer to the directory for cs604 course?
Right after the login, how he can concatenate or display files?
How he can display the absolute pathname of his working directory?
How can he remove an empty directory under cs604 directory?
Question No 2 08 Marks
Draw three state transition diagram of the following:
Diagram in which a process completes its execution with in its time line.
Diagram in which process never block itself / never get blocked and completes its execution.
Best of Luck
|
0 Comments