UNIX MCQ SET 10


1) Which of the following special shell variables is used to process number of the last background job?

a. $!
b. $#
c. $0
d. $*

2) Which option will be used with ps command to slow the entire command line of the process being run?

A. -4
B. -f
C. -1
D. -4

3) Which of the following command addresses all users who are currently hooked on?

A. write
B. mail
C. wall
D. mesg

4) Which of the following commands is used to identify the type of file by context?

A. ls
B. cat
C. file
D. more

5) The filed separator in cut command is specified with

A. -a option
B. -d option
C. -r option
D. -x option

6) Which of the following options will be used to display number of blocks used by a file?

A. -c
B. -i
C. -d
D. -s

7) Which option will be used with touch command to change the access time?

A. -a
B. -b
C. -t
D. -h

8) Which command is used to make all files and sub-directories in the directory (progs) executable by all users?

A. chmod -R a+xprogs
B. chmod -R 222 progs
C. chmod -1 a+xprogs
D. chmod -x a+xprogs

9) Which command is used to display and create files?

A. cat
B. vi
C. ed
D. lyrix

10) The second set of the three permissions (r-) indicates that

A. group has read permission only
B. other has read permission only
C. owner has read permission only
D. group has write permission only

Correct Answers

1) A

2) B

3) C

4) C

5) B
6) D

7) A

8) A

9) A

10) A

Leave a comment