Unix interview / Learning Questions

23.If a directory contains public files which should not be altered,the most liberal permissions that can be given to the directory is
Ans 755

24. After the following command is executed
$ ln old new

a listing is performed with the following output

$ ls -li

total 3

15768 -rw-rw-rw- 2 you 29 Sep 27 12:07 old
15768 " " " " " " " " new
15274 " " 1 " 40 " " 09:34 veryold

which of the following is true

a)old and new have same i-node number,2
b) " " " " " " " , 15768
c)old and new have nothing yo do with each other
d)very old and new are linked
e)very old and old are linked

Ans: old and new have same i-node number, 15768

25. The command ......ln /bin/mail /usr/you/bin/m

a)will not be executed because you are linking files across different file systems
b)results ln /bin/mail being the same file as /usr/you/bin/m
c)results in 2 links to the file mail
d) " " " " m
e)none

Ans: b

26. In a standard directory lay out, /etc is the directory where

a) basic programs such as who and ed reside

b)various administrative files such as password file reside

Ans: b

27. The UNIX system call that transforms an executable binary file into

a process is
a)execl()
b)execv()
c)execle()
d)execve()
e)All of the above

Ans : d