Saturday, 19 September 2015

// // Leave a Comment

UTU( UTTRAKHAND TECHNICAL UNIVERSITY) PREVIOUS YEAR QUESTION PAPER (2012-2013) -UNIX & SHELL PROGRAMMING -2nd YEAR (iv sem) B.Tech.


 (SEM. IV) (EVEN SEM.) EXAMINATION, 2013
  UNIX AND SHELL PROGRAMMING
Time : 2 Hours]                                                                                              [Total Marks : 50


Q.1  Attempt any four
     
(a)   "various terminals can be connected to a single UNIX based host machine". What does terminal mean in this statement? Discuss different types  of terminal.

(b)  What are various types of files in UNIX system? Give suitable example for each.

(c)  Explain internal and external commands with the help of suitable example.

(d)  Distinguish between Bourne shell and C shell.

(e)   Explain following commands with suitable examples:
          i.          cat
          ii.         mov
          iii.        diff

(f )   What do following command do? Explain:
          i.          $date +"%D %T"
          ii.         $chgrp alpha xyz.dat
          iii.        $chmod 644 xyz.dat



Q.2   Attempt any four :
    
(a)   How files are stored on a UNIX system. How does a file determine maximum supported size of a file?

(b)   Discuss UNIX system architecture and also describe each of the following components.

(c)   Write a command to find all the files which have been accessed within the last 30 days.

(d)   Write command to create a user 'USER' with UID 123 and GID 'cse' and it is to b placed in the /home directory.

(e)   Discuss the command related to mounting and unmounting a file system.

(f)   Write command to search for a sample string in particular file. Make necessary assumption.

  

Q.3   Attempt any two :
      
(a)   Explain the difference between   (i) block and character device , (ii) major and minor numbers. Can two devices have the same major and minor numbers?

(b)   What are the roles of a UNIX system administrator ?

(c)   What is SCCS in a UNIX system ? Discuss in brief



Q.4   Attempt any two :
       
(a)   Write a shell script to calculate factorial of any number entered through keyboard.

(b)  Write a shell script which gets executed the moment the user logs in. It should display the message  "Good Evening " depending  upon the time at which the user logs in.


(c)   Write a shell script that accepts two director names 'dir1' and 'dir2'  , and delete those files in dir2 which are identical to their namesakes in dir1.

0 comments:

Post a Comment