Take Unix MCQ Online Test To test Your Knowledge 

We have listed below the best Unix MCQ Questions, that check your basic knowledge of the Unix Operating System. This Unix MCQ Test contains the best 25 Unix Multiple Choice Questions and Answers. these MCQs are very popular & asked various times in Unix Exams/Interviews. So, practice these questions, to check your final preparation. Finally, you have to select the right option for every question to check the right answers. apart from this, you can also download below the Unix MCQ PDF completely free.

Unix MCQ Online Test

1) Which Option Is used With Tail Command For Extracting Bytes instead Of Lines?

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

2) Which Symbol Will Be Used With Grep Command To Match The Pattern Pat At The Beginning Of A Line?

  • A. ^pat
  • B.$pat
  • C.Pat$
  • D.Pat^

3) To Extract Specific Columns From A File, ____ Command Is Used.

  • A. Tail
  • B.Head
  • C.Pr
  • D.Cut

4) Which Command Is Used To Sort The Lines Of Data In A File In Reverse Order

  • A. Sort
  • B.Sh
  • C.St
  • D.Sort -r

5) What Is The Default Delimiter Used By The Cut Command For Cutting Fields?

  • A. Space
  • B.Tab
  • C.Double Tab
  • D.Underscore
Download Free : Unix MCQ PDF

6) In Vi Editor, Forward Search Is Performed Using The Command.

  • A. :pat
  • B.?pat
  • C./pat
  • D.All Of The Above

7) Which Of The Following Special Shell Variables Is Used To Process Number Of The Last Background Job?

  • A. $!
  • B.$#
  • C.$
  • D.$*

8) Which Option Will Be Used With Ps Command To Slow The Entire Command Line Of The Process Being Run?

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

9) The Agency That Sits Between The User And The UNIX System Is Called The

  • A. Logic
  • B.Shell
  • C.Profile
  • D.Erxc

10) Which Command Is Used To Display A File Contents In Octal Form?

  • A. Cd
  • B.Od
  • C.Of
  • D.Oct

11) Which Of The Following Keys Is Used To Move The Cursor To The End Of The Paragraph.

  • A. }
  • B.{
  • C.|
  • D.$

12) The CP Command Uses

  • A. Standard Input File
  • B.Standard Output File
  • C.Both Input And Output File
  • D.Neither Standard Input Nor Standard Output File

13) Which Shell Offers A Command History Feature

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

14) Unix Is Written In

  • A. Ada Language
  • B.C Language
  • C.Perl Language
  • D.Pascal Language

15) Unix Is A

  • A. Single User, Single Tasking OS
  • B.Single User, Multi-tasking OS
  • C.Multi-User, Multi- Tasking OS
  • D.None

16) The Command Echo Welcome > /dev / Tty

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

17) The File That Stores An Integer As A Sequence Of Characters Is A

  • A. Text File
  • B.Binary File
  • C.Data File
  • D.Core File

18) The Differences Between Malloc( ) And Calloc() Are:

  • A. Malloc Is Used For Dynamic Allocation Of Memory, While Cal:c Can't Be Used For That Purpose
  • B.Malloc Needs Only One Argument. While Cal Loc Needs Two.
  • C.Unlike Malloc, Calloc Allocates Memory And Initializes It To 0.
  • D.Both (b) And (c)

19) Choose The Incorrect Statements.

  • A. Shell Scripts Can Accept Arguments
  • B.Shell Scripts Are Interpreted
  • C.Shell Is A Programming Language
  • D.Shell Scripts Are Compiled

20) Which command is used to display and create files?

  • A. vi
  • B.cat
  • C.ed
  • D.lyrix

21) What is unix in operating system?

  • A. Opensource
  • B.Multiuser
  • C.Multitasking
  • D.All of the above

22) What is a shell scripting in Unix?

  • A. Group of functions
  • B.Group of commands
  • C.A file containing special symbols
  • D.A file containing a series of commands

23) What is the syntax for using && in unix?

  • A. cmd1 & cmd2&
  • B.cmd1 && cmd2
  • C.cmd1 cmd2 &&
  • D.None of the above

24) ............... is used for checking if the file is writable or not.

  • A. -e
  • B.-n
  • C.-f
  • D.-w

25) Which of the following command is used for computation and string handling?

  • A. if
  • B.read
  • C.expr
  • D.case

1 comment(s) :

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

JavaScript MCQ
Oracle MCQ
DevOps MCQ
C++  MCQ
Fortran MCQ