Operating System (3140702) MCQs

MCQs of Unix/Linux Operating System

Showing 51 to 60 out of 115 Questions
51.
Which option is used with rm command for interactive deletion?
(a) -i
(b) -f
(c) -r
(d) -R
Answer:

Option (a)

52.
If we wish to delete a remove a file forcefully. we can use ____ option with rm command.
(a) -i
(b) -r
(c) -R
(d) -f
Answer:

Option (d)

53.
Which command is used for renaming files?
(a) rename
(b) mv
(c) cp
(d) move
Answer:

Option (b)

54.
What if the destination file specified in mv command already exists?
(a) It will be deleted
(b) It will not be affected
(c) It will be overwritten
(d) An error will be produced
Answer:

Option (c)

55.
Which command is used for comparing two files?
(a) cmp
(b) comp
(c) diff
(d) comm
Answer:

Option (a)

56.
What is the exit status of cmp command if both the files are identical?
(a) 0
(b) 1
(c) 2
(d) undefined
Answer:

Option (a)

57.
Which option is used with cmp command to limit the number of bytes to be compared?
(a) -n
(b) -l
(c) -f
(d) -b
Answer:

Option (a)

58.
How can we skip some initial bytes from both the files to be compared?
(a) using -b option
(b) using -n option
(c) using -l option
(d) using -i option
Answer:

Option (d)

59.
Which command compares two sorted files line by line?
(a) cmp
(b) diff
(c) comm
(d) sort
Answer:

Option (c)

60.
What will be the command if we want to suppress column 1 and column 2 in the output of comm Command?
(a) comm -12
(b) comm -1-2
(c) comm -3
(d) comm -1,-2
Answer:

Option (a)

Showing 51 to 60 out of 115 Questions