Unix MCQ Questions with Answers #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

Unix Tips

See Also

Have a Unix Problem
Do you have a UNIX Question?

Unix Books :-
UNIX Programming, Certification, System Administration, Performance Tuning Reference Books

Return to : - Unix System Administration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.
The site www.gotothings.com is in no way affiliated with or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.