Unix Mcq Questions

Unix Mcq Questions

  • Sharad Jaiswal
  • 23rd Nov, 2021

Practice here the best Unix Mcq Questions for your basic knowledge of Unix. This Unix MCQ Test contains 25+ Unix Multiple Choice Questions. You have to select the right answer to every question to check your final preparation for Unix MCQ Interview, or Exams.

Practice Best Unix MCQ Questions

1) Which option is used with the tail command for extracting bytes instead of lines?

  • A. -c
  • B.name?
  • C.#name?
  • D.bytes?

2) The Command Echo Welcome > /dev / Tty.

  • A. Echoes Welcome In All The Terminals That Are Switched On.
  • B.Echoes Welcome Only In The Terminal In Which It Is Run.
  • C.Echoes Welcome In All The Terminals That Are Logged On.
  • D.Both A & B

3) Which shell offers a command history feature?

  • A. C shell
  • B.Korn shell
  • C.Visual shell
  • D.Bourne shell

4) What is a shell script in unix?

  • A. It is a unix command.
  • B.It is a computer file.
  • C.It is a computer program designed to be run by the Unix shell.
  • D.None of the above

5) What is the output of who command?

  • A. Display processes
  • B.Display file hierarchy
  • C.Display administrator information
  • D.Display information about users who are currently logged in.

6) Unix is a ............

  • A. Multi-User, Multi- tasking OS
  • B.Single User, Multi-tasking OS
  • C.Single User, Single tasking OS
  • D.None of the above

7) Unix is written in which language?

  • A. C language
  • B.Perl language
  • C.Pascal language
  • D.None of the above

8) Unix Command can be typed in ...........

  • A. Upper case
  • B.Lower case
  • C.Both Upper case & Lower case
  • D.None of the above

9) Unix OS was first developed by ............

  • A. Dennis Ritchie
  • B.Ken Thompson
  • C.Brian Kernighan
  • D.Bjarne stroustrup

10) Which option will be used with ps command to slow the entire command line of the process being run?

  • A. -1
  • B.-2
  • C.-4
  • D.#NAME?

11) The category of commands which uses both standard input and standard output are called ____

  • A. filters
  • B.standard input commands
  • C.directory oriented commands
  • D.standard output commands

12) To extract specific columns from a file, ____ command is used.

  • A. cat
  • B.cut
  • C.grep
  • D.paste

13) ____ command is used to display the environment variables only.

  • A. sh
  • B.var
  • C.env
  • D.set

14) echo command is used for ..........

  • A. displaying errors
  • B.displaying date and time
  • C.displaying diagnostic messages
  • D.displaying operating system details

15) ____ command is used for sorting a file on specified fields.

  • A. pr
  • B.tail
  • C.cut
  • D.sort

16) How do you get help about the command cp?

  • A. cd?
  • B.info cp
  • C.man cp
  • D.help cd

17) The agency that sits between the user and the UNIX system is called the

  • A. erxc
  • B.shell
  • C.logic
  • D.profile

18) In vi editor, forward search is performed using the command.

  • A. ?pat
  • B.:pat
  • C./pat
  • D.None of the above

19) Which of the following command is used to display the documentation of commands in UNIX?

  • A. man
  • B.help
  • C.search
  • D.whatis

20) What are escape sequences?

  • A. special utilities
  • B.special commands
  • C.a sequence of characters
  • D.special characters beginning with a backslash

21) What does script command is used for?

  • A. recording scripts
  • B.recording history
  • C.recording passwords
  • D.recording our session

22) ............ command is used by the user to change their login password in UNIX?

  • A. cp
  • B.man
  • C.reset
  • D.passwd

23) The file name and file size are stored in the file itself in Unix.

  • A. True
  • B.False

24) What is the most common file type?

  • A. device file
  • B.ordinary file
  • C.directory file
  • D.ordinary file and directory file

25) What does the $ mkdir dir dir/dir_01/dir_02 command do?

  • A. creates dir_02
  • B.creates dir only
  • C.throws an error
  • D.create dir, dir_01 and dir_02

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.