You are on page 1of 2

SET-1 July 2018 - Dec 2018

Lab Evaluation III – October 2018


Roll No: …………………………
Name : ______________ [Total No. of Pages: 2]
Date: Time: 10 minutes
Program Name: BE Title of the Course: Introduction to Linux (CSP3213) Max. Marks: 10

Instructions:

There are 7 questions of one mark each and 1 question of 3 marks. All 1 mark questions are having four distinct
options out of which only one choice will be correct. All questions are compulsory.

1)____-x____ option with ______ps___ command is used to display user running processes.

a) –x, ps c) –C, kill

b) -A, pstree d) –d, tree

2) To delete a specific job from a job list, ________ command with ________ is used.

a)rm, PID c) atq, job ID

b) kill, PID d) atrm, job ID

3) Which is(are) correct command(s) to add two numbers out of the following:

a) expr $2+$3 c) x=$(1+2), echo $c

b) echo expr 2+3 d) echo $(($a+$b))

4) Suppose you want to run a shell script (eval-3.sh) every Tuesday in the morning at 5:00 AM at your
teminal. Which of the following crontab entry will do the same on terminal?

a) crontab 5 0 * * 5 eval-3.sh c) 0 * 5 * 3 /home/eval-3.sh

b) 0 5 * * 2 bash /home/eval-3.sh > dev/pts/1 d) 0 5 * * 2 bash /home/eval-3.sh

5) We don’t need to compile a shell script because shell scripts are __________.

Ans: Interpreted

7) ________ option with _______ command is used to remove a process form the system.

a) process_name, remove b) PID, erase


c) Process_name, delete d) PID, kill

6) ______ command is used to display different shells that a particular operating system supports.

a) touch /bin/shells c) cat /etc/shells

b) #! /bin/bash d) #! /etc/bash

8) Write a shell script to compare the content of two files such that only the first word of every line of
both the files should be displayed with “*” as delimiter. (3 Marks)

You might also like