Aptitude Reasoning English GK Computer Knowledge Programming Skill Banking Software Testing



Question - 1

 Option to mention field separator for the command ‘cut’ is __

  • -d
  • -f
  • -r
  • -c
Solutions
Question - 2

Which command is used to display the end of the file?

  • head - r
  • tail
  • eod
  • bof
Solutions
Question - 3

The cat command is used to

  • Capture a file
  • Display a file
  • Print a file
  • Copy a file
Solutions
Question - 4

Which of the following files will be displayed by this command cat *ch*

  • patch
  • catch
  • .ch
  • All of the above
Solutions
Question - 5

Which command is used to set the three permissions for all the three categories of users of a file?

  • chmod
  • chown
  • chgrp
  • chusr
Solutions
Question - 6

Which of the following command is used to count just the number of lines contained in a file?

  • wc -l
  • wc -p
  • wc -r
  • wc -c
Solutions
Question - 7

The second set of the three permissions (r-) indicates that

  • Group has read permission only
  • Other has read permission only
  • Owner has read permission only
  • Group has write permission only
Solutions
Question - 8

Which command is used to extract specific columns from the file?

  • cut
  • slice
  • grep
  • none of the above
Solutions
Question - 9

Which of the following command is used to go to home directory?

  • cd..
  • cd/
  • cd
  • ..cd
Solutions
Question - 10

Which of are following internal commands is used in mail to forward mail to user in user-list?

  • r user-list
  • m user-list
  • e user-list
  • u user-list
Solutions
Question - 11

Which command is used to copy a file wb with the same name from the programs directory to the misc directory??

  • copy programs/wb misc/wb
  • cp programs/wb misc
  • tar programs/wb misc/wb
  • copy a:programs/wb b:misc/wb
Solutions
Question - 12

Which of the following commands is used to identify the type of file by context?

  • ls
  • file
  • cat
  • None of the above
Solutions
Question - 13

Which of the following commands can be used to get information about all users who are currently logged into the system?

  • Who
  • which
  • who_user
  • None of the above
Solutions
Question - 14

Which command is used to link the files?

  • ln
  • link
  • cd
  • tar
Solutions
Question - 15

Which of the following command addresses all users who are currently hooked on?

  • mail
  • wall
  • write
  • msg
Solutions
Question - 16

Which command is used with vi editor to save file and remain in the editing mode?

  • :q
  • :w
  • :r
  • :wt
Solutions
Question - 17

Which command is used to sort the lines of data in a file in reverse order

  • sort
  • sort -r
  • sh
  • st
Solutions
Question - 18

Which of the following commands is used to count the total number of lines, words, and characters contained in a file.

  • count p
  • wc
  • wcount
  • countw
Solutions
Question - 19

The UNIX file system stores a data in physical blocks of

  • 512 bytes
  • 1024 bytes
  • 2048 bytes
  • 24 bytes
Solutions
Question - 20

Which command is used to display a file contents in octal form?

  • cd
  • od
  • oct
  • ot
Solutions
Tags:
Unix MCQ (Multiple Choice Questions), Advanced Unix MCQ, Unix MCQ Online test,Unix MCQ Questions and answers PDF, Unix Interview Questions With Answers, Unix Command Questions with full explanation