Operating System (3140702) MCQs

MCQs of Unix/Linux Operating System

Showing 61 to 70 out of 115 Questions
61.
Which command is used to display the differences between files?
(a) comm
(b) diff
(c) cmp
(d) differ
Answer:

Option (b)

62.
When two files are identical. what is the output of diff command?
(a) Files are identical
(b) Returns prompt
(c) No output
(d) Throws an error
Answer:

Option (b)

63.
Which command is used for counting words, lines, and characters in a file?
(a) diff
(b) count
(c) man
(d) wc
Answer:

Option (d)

64.
Which option is used for counting the number of lines in a file only.
(a) -l
(b) -W
(c) -c
(d) -w
Answer:

Option (a)

65.
Which option is used for counting the number of words in a file only?
(a) -l
(b) -W
(c) -c
(d) -w
Answer:

Option (d)

66.
Which option is used for counting the number of characters in a file only.
(a) -l
(b) -W
(c) -c
(d) -w
Answer:

Option (c)

67.
Which command is used for knowing the file type?
(a) file
(b) type
(c) filetype
(d) type of file
Answer:

Option (a)

68.
A file can be recognized as an ordinary file or directory by ____ symbol.
(a) $
(b)
(c) *
(d) /
Answer:

Option (b)

69.
How many types of permissions a file has in UNIX?
(a) 1
(b) 2
(c) 3
(d) 4
Answer:

Option (c)

70.
Permissions of a file are represented by which of the following characters?
(a) r,w,x
(b) e,w,x
(c) x,w,e
(d) e,x,w
Answer:

Option (a)

Showing 61 to 70 out of 115 Questions