Operating System (3140702) MCQs

MCQs of Unix/Linux Operating System

Showing 41 to 50 out of 115 Questions
41.
cat command is also used for _____ files.
(a) Displaying
(b) Deleting
(c) Copying
(d) Creating
Answer:

Option (d)

42.
If we create a file using cat command with the same filename which already exists in the current directory then
(a) If we create a file using cat command with the same filename which already exists in the current directory then
(b) New file will be created separately
(c) Existing file will be overwritten
(d) An error will be produced
Answer:

Option (c)

43.
Which symbol is used to append an existing file?
(a) >
(b) <
(c) >>
(d) $
Answer:

Option (c)

44.
Which of the following cannot be performed by cat command?
(a) Displaying files
(b) Creating files
(c) Appending files
(d) Deleting files
Answer:

Option (d)

45.
Which of the following can perform by cat command?
(a) Displaying files
(b) Creating files
(c) Appending files
(d) All of above
Answer:

Option (d)

46.
What happens if the destination file specified in cp command does not exist?
(a) File will not be copied
(b) An error will be produced
(c) Destination file will be automatically created
(d) None of the mentioned
Answer:

Option (c)

47.
What does -i option do in cp command?
(a) Interactive copying
(b) Recursively copying
(c) Updating
(d) None of the mentioned
Answer:

Option (a)

48.
Which option is used with cp command for linking files instead of copying?
(a) -v
(b) -l
(c) -f
(d) -x
Answer:

Option (b)

49.
Which command is used for removing/deleting files in UNIX?
(a) rmdir
(b) rm
(c) del
(d) remove
Answer:

Option (b)

50.
To delete all files in a directory we use ______________
(a) rmdir *
(b) mv *
(c) rm *
(d) del *
Answer:

Option (c)

Showing 41 to 50 out of 115 Questions