MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Information Science
1000 Unix
Quiz 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Q.1
Which command is used for renaming files in Unix?
a) rename
b) move
c) mv
d) cp
Q.2
Which command is used for comparing two files?
a) comp
b) cmp
c) comm
d) diff
Q.3
Which Unix command is used for counting words, lines, and characters in a file?
a) wc
b) man
c) count
d) diff
Q.4
In UNIX, which command is used to change the permissions of a file?
a) chown
b) chgrp
c) chmod
d) ch
Q.5
Which symbol is used to change permissions for hidden files in Unix?
a) *
b) $
c) &
d) .
Q.6
Which command is used for saving and quitting the vi editor simultaneously?
a) ‘:x’
b) :f
c) :q
d) :w
Q.7
How can we escape to the UNIX shell without quitting vi editor?
a) using ‘:sh’ command and using ctrl-Z
b) using ‘:sh’ command
c) using ctrl-Z
d) using ctrl-D
Q.8
For creating and removing directories, which of the following system calls are used?
a) mkdir and rmdir
b) rmdir and chown
c) chdir and chown
d) mkdir and chdir
Q.9
Which of the following files are known as special files in Unix?
a) /dev/null
b) sample.txt
c) /dev/null and /dev/tty
d) /dev/tty
Q.10
What is the output of the following Unix command? $ wc -c *.c
a) size of each .c file
b) total size of .c files
c) erroneous
d) undefined
Q.11
In Unix, for what purpose bc command is used?
a) for copying files
b) as a process table viewer
c) as an editor
d) as a calculator
Q.12
Which process is immediately set up by the kernel when we log on to a Unix system?
a) System
b) bash
c) shell
d) parent
Q.13
Which command shows some attributes of a process?
a) HOME
b) ps
c) $$
d) pid
Q.14
Which of the following system call is used for creating a new process in Unix?
a) new
b) wait
c) read
d) fork
Q.15
Which of the following command is used to create a child shell?
a) sh
b) env
c) wait
d) fork
Q.16
Which Unix command is used for locating files?
a) type
b) loc
c) find
d) search
Q.17
Which command is used for preparing a file for printing?
a) pr
b) print
c) cat
d) cd
Q.18
Which command is used for sorting a file on specified fields?
a) pr
b) cut
c) tail
d) sort
Q.19
Which Unix command is used for locating repeated and non-repeated lines?
a) cut
b) paste
c) uniq
d) sort
Q.20
Which command is used for translating characters?
a) paste
b) tr
c) trans
d) sort
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page