Operating System (3140702) MCQs

MCQs of Unix/Linux Operating System

Showing 31 to 40 out of 115 Questions
31.
Which command is used for displaying date and calendar in UNIX?
(a) date and cal
(b) DATE and CAL
(c) date and calendar
(d) dt and cl
Answer:

Option (a)

32.
What is the output of who command?
(a) Display information about users who are currently logged in.
(b) Display file hierarchy
(c) Display administrator information
(d) Display processes
Answer:

Option (a)

33.
Which command is used for displaying date in the format dd/mm/yyyy ?
(a) date +%m
(b) date +%h
(c) date +”%d/%m/%Y”
(d) date +”%h %m”
Answer:

Option (c)

34.
echo command is used for _________
(a) Displaying errors
(b) Displaying operating system details
(c) Displaying diagnostic messages
(d) Displaying date and time
Answer:

Option (c)

35.
What are the escape sequences?
(a) Special characters beginning with a \ (backslash)
(b) Special commands
(c) Special utilities
(d) A sequence of characters
Answer:

Option (a)

36.
Which of the following is not a valid escape sequence in UNIX?
(a) \n
(b) \t
(c) \v
(d) \d
Answer:

Option (d)

37.
we can use _____ for interrupting.
(a) ctrl-f
(b) esc
(c) ctrl-h
(d) ctrl-c
Answer:

Option (d)

38.
Which command is used for changing the current directory?
(a) cd
(b) cp
(c) pwd
(d) rm
Answer:

Option (a)

39.
The output of ls dir* is ___
(a) All files in the current directory
(b) All files in the directory having a filename starting with dir
(c) No filename is displayed
(d) Erroneous
Answer:

Option (b)

40.
Which command is used for displaying contents of a file?
(a) cp
(b) rm
(c) cat
(d) mkdir
Answer:

Option (c)

Showing 31 to 40 out of 115 Questions