Sunteți pe pagina 1din 1

DHARMSINH DESAI UNIVERSITY, NADIAD

FACULTY OF TECHNOLOGY
B.Tech Semester-I (IT/CE/EC/IC)
SUBJECT: (CT116) ELE. OF LINUX OS & C PROG.-I
Examination : First Sessional Seat No. :
Date : 19/08/2015 Day : Wednesday
Time : 03:45 PM to 05:00 PM Max. Marks : 36

INSTRUCTIONS:
1. Figures to the right indicate maximum marks for that question.
2. The symbols used carry their usual meanings.
3. Assume suitable data, if required & mention them clearly.
4. Draw neat sketches wherever necessary.

Q.1 Do as directed. [12]


(a) How do you run ls to (i) mark directories and executables separately, (ii) display hidden files [2]
also?
(b) What is the difference between these two commands [2]
(1) $ mkdir e1 / e2 / e3
(2) $ mkdir e1 e2 e3
(c) State True/ False: Copying a file changes the i-node number of the new copied file. Explain [2]
(d) Differentiate valid and invalid file names. [2]
( i) .abc (ii) ..abc (iii) abc\xyz (iv) abc/ xyz
(e) In Linux, directories, devices, processes etc are all treated as files. State True/False. [2]
Give basis for your answer.
(f) What is meant by PATH variable? Why is proper setting of the PATH variable important? [2]

Q.2 Attempt Any TWO of the following questions. [12]

(a) How will the command cp a b work if [6]


1) a and b are ordinary files
2) a is a directory and b is a file
3) a is a file and b is a directory
4) a and b both are directories
Explain in each case..

(b) i) What is the significance of scale, ibase, obase in bc command? [6]


ii) What do you mean by HOME directory? Suppose at present you are in
/home/user1/1stsem/ ELCP directory . How can you go to your HOME directory using
(a) Absolute Path (b) Relative Path

(c) i) Explain following commands [3]


1) script 2) uname 3) rm
ii) Explain the output of following commands [3]
1) type echo 2) stty echo 3)date +%h %m

Q.3 (a) Explain in detail architecture of the UNIX operating system. [6]
(b) What is meant by Recursive behaviour of a command? Name two commands, along [6]
with a suitable example of each, that can operate recursively.

OR

Q.3 (a) Explain UNIX File system. [6]


(b) Explain Man command Documentation taking any Unix command as an example. [6]

Page 1 of 1

S-ar putea să vă placă și