Online GK Series

This site is dedicated to the aspirants of competitive exams SSC, UPSC, Railways, Postal Assistants, Bank, GATE and NET

Get Attractive Job

Unix Multiple Choice Interview Questions and Answers | Page-2

Questions
6 In cat man 2>eman, 2>tells
A redirect the man to eman
B redirect the file with file descriptor 2 to eman
C redirect the content of man and 2 to eman
D None of the above

Answer: Option [D]
7 csh
A is known as the C shell
B begins by executing commands from .cshrc
C invokes a shell command interpreter
D all of these above

Answer: Option [D]
8 What command shows file system disk usage ?
A du
B df
C ls
D chkdsk

Answer: Option [A]
9 Which of the following commands is used to monitor disk input and output on a UNIX system ?
A Sar
B iostat
C nfsstat
D vmstat

Answer: Option [B]
10 Refer to the following example of sed

#sed -n ā€˜2, 5, pā€™ file1

What contents of the file1 will be selected and displayed ?

A only line 2 and 3 of the file1
B lines 2 through 5
C all lines except 2 and 5
D all lines except 2 through 5

Answer: Option [B]

Useful Computer Science EBooks