Operating System (3140702) MCQs

MCQs of Unix/Linux Operating System

Showing 11 to 20 out of 115 Questions
11.
What does the following command do? $ mkdir dir dir/dir_01/dir_02
(a) create dir, dir_01 and dir_02
(b) creates dir_02
(c) creates dir only
(d) throws an error
Answer:

Option (a)

12.
Sometimes we are unable to create a directory because ______________
(a) The directory may already exist in the current directory
(b) There may be an ordinary file by the same name in the current directory
(c) The permissions set for the current directory does not allow the creation
(d) The directory may exist, there may be an ordinary file, the permissions set for the current directory does not allow the creation
Answer:

Option (d)

13.
Which command is used for removing an empty directory?
(a) mkdir
(b) rmdir
(c) del
(d) remove
Answer:

Option (b)

14.
Which command is used for listing files in a directory?
(a) ps
(b) list
(c) ls
(d) wc
Answer:

Option (c)

15.
Which option is used with ls command for long listing of files with seven attributes?
(a) -a
(b) -l
(c) -x
(d) -i
Answer:

Option (b)

16.
Apart from displaying file contents. cat command is also used for _____ files.
(a) Displaying
(b) Deleting
(c) Copying
(d) Creating
Answer:

Option (d)

17.
Which symbol is used with cat command for creating files?
(a) >
(b) <
(c) *
(d) /
Answer:

Option (a)

18.
How can we copy a file into our current directory?
(a) cp file1
(b) cp file1.
(c) cp file*
(d) none of the mentioned
Answer:

Option (b)

19.
Which one of the following command can delete a directory which is not empty?
(a) rm -r
(b) rmdir
(c) rm *
(d) del *
Answer:

Option (a)

20.
What is the permission of file01 after executing this command? chmod 777 file01
(a) rwxrwxrwx
(b) rw-rw-rw
(c) r–r–r–
(d) r–r—-
Answer:

Option (a)

Showing 11 to 20 out of 115 Questions