Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

F E1278 Pages: 2

Reg No.:_______________ Name:__________________________


APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
FIFTH SEMESTER B.TECH DEGREE EXAMINATION(S), MAY 2019
Course Code: IT363
Course Name: UNIX SHELL PROGRAMMING
Max. Marks: 100 Duration: 3 Hours
PART A
Answer any two full questions, each carries 15 marks. Marks
1 a) Explain the different modes of operation of Vi editor. Write down the (6)
commands used in each mode.
b) Illustrate the following Unix utilities? Give examples for each. (4)
(i) mv (ii) pwd (iii)who (iv) lp
c) Write the difference between file modification time and access time. Write the (5)
commands for displaying them.

2 a) With suitable examples explain about the following commands (8)


(i)find (ii) chown (iii) bc (iv) wc
b) Differentiate between hard link and soft link. (4)
c) Explain the usage of sticky bit? (3)

3 a) What are the features of Unix operating system? Explain. (5)


b) With diagram, explain about Unix file system. (5)
c) Translate the following permissions to octal code and symbolic code (5)
(i) --x --x --x (ii) rwx--x --x (iii) r-xr-xrwx (iv) r-xr-x--- (v) --xrwx--x

PART B
Answer any two full questions, each carries 15 marks.

4 a) With example explain about (i) talk (ii) mesg (iii) finger (iv)telnet (v) rlogin ( 10)
b) Explain about command substitution with an example. ( 5)
5 a) Write the output of the following (i) ls -x chap? (ii) ls -x chap[0-2] (10)
(iii) ls -x chap0\[1-3\] (iv) echo ‘*?[1-6]’ (v) who | tee -a f.txt

Page 1 of 2

For More Visit : KtuQbank.com


F E1278 Pages: 2

b) Explain job scheduling in Unix with proper example. (5)

6 a) List any five commonly used signals and explain its usage. (5)
b) Explain the following (i) ps (ii)tr (iii)cut (iv) kill (v) nohup (5)
c) Explain any two filters? (5)

PART C
Answer any two full questions, each carries20 marks.
7 a) Shell script program for menu driven calculator with the following functions. (10)
(i) Addition (ii) Subtraction (iii) Multiplication (iv) Division (v) Modulus
b) Write an awk program to print the 1st and 3rd field of a file where the last field (5)
should contain some numerical data which is greater than 10000.
c) Write the output for the following (5)
i. $sed -e ’ s/Linux/Unix/g’ myfile
ii. $grep -c output$ myfile
iii. $grep output myfile | wc -l

8 a) Write an awk program to list and count the no. of employees whose monthly (10)
salary greater than 60000, and find out average salary of them. Assume that
there is a file which consists of empID, empName and monthly salary field
separated with “,”
b) Explain about the application of eval and exec statements. (5)
c) With suitable example explain about sleep and wait command. (5)

9 a) Write a shell script to accept student name register number and marks of four (10)
subjects of 10 students. Find the total mark and grade of each student.
b) Explain about line addressing in sed (5)
c) Explain about grep command (5)
****

Page 2 of 2

For More Visit : KtuQbank.com

You might also like