PTU B.Tech ECE 6th Semester May 2019 71166 UNIX PROGRAMMING Question Papers

PTU Punjab Technical University B-Tech May 2019 Question Papers 6th Semester Electronic and Communication Engineering (ECE)

Roll No.
Total No. of Pages : 02
Total No. of Questions : 09
B.Tech (Electronic & Computer Engineering) (2011 Onwards) (Sem.?6)
UNIX PROGRAMMING
Subject Code : BTEL-604
M.Code : 71166
Time : 3 Hrs.
Max. Marks : 60
INSTRUCTIONS TO CANDIDATES :
1.
SECTION-A is COMPULSORY consisting of TEN questions carrying T WO marks
each.
2.
SECTION-B contains FIVE questions carrying FIVE marks each and students
have to attempt any FOUR questions.
3.
SECTION-C contains T HREE questions carrying T EN marks each and students
have to attempt any T WO questions.


SECTION-A
1.
Answer briefly :

a. Explain the following commands with example


i) closedir



ii) opendir


iii) readdir

b. What is kernel? Is it similar to the operating system? Explain

c. Differentiate between head and tail.

d. List the various operations of sed commands.

e. Define system call.

f. What is file? What are different types of files? Explain.

g. Write a shell script to concatenate two files.

h. What is the difference between symlink and ulink?

i. List applications of sed.

j. Differentiate between Window and Unix operating system.
1 | M-71166

(S2)-1147


SECTION-B
2.
Explain the following commands with their syntax and examples.

a) man

b) echo

c) passwd


d) date

e) Is
3.
Explain vi editor and discuss about different modes of operation in vi editor.
4.
Explain Korn shell input and output commands with example.
5.
Explain unjx file permissions for security.
6.
Explain in detail about the mathematical functions of AWK.

SECTION-C
7.
Explain the architecture of UNIX operating system in detail.
8.
a) Explain various Special Parameters and Variables in C shell programming,

b) What is redirection? Explain standard redirections.
9.
a) Discuss in detail about grep family of commands.

b) Explain in detail the following networking commands.


i) du



ii) mount


iii) telnet



iv) df



v) finger

NOTE : Disclosure of identity by writing mobile number or making passing request on any

page of Answer sheet will lead to UMC case against the Student.
2 | M-71166

(S2)-1147


This post was last modified on 04 November 2019