Professional Documents
Culture Documents
RA
UNIX PROGRAMMING
(Computer Science & Systems Engineering)
Time: 3 hours Answer any FIVE questions All questions carry equal marks **** 1 2 Explain in detail about the unix file system. Explain the following functions with syntax: (a)sort (b) uniq (c) comm (d) tee 3 (a) Write a script to arrange the set of numbers in descending order.
Max Marks: 70
(b) Write a C program which receives file names as command line arguments and display the filename in ascending order according to their sizes. 4 (a) Define shell? Explain various responsibilities of shell. (b) Explain about shell meta characters. 5 6 Write about read dir, close dir, seek dir, tell dir system calls and give examples. Explain the following (a) Signal functions (b) Pause functions (c) Zombie process 7 (a) Differentiate between file locking and record locking. (b) With an example, explain about read / write locking. 8 (a) What are the named pipes? Explain in detail. (b) Explain how to control a shared memory segment.
*****